You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by rueh hänä <ru...@gmx.net> on 2005/08/29 12:58:07 UTC
Got trouble with virtual hosts
Hi there
I dont know, what term to search for.. so excuse me, if there is already a
similar problem
I'm running a Webserver on Fedora Core 4
- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc
I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:
-------------------------------------------------
<VirtualHost 192.168.0.170:80>
ServerName www.website.ch
DocumentRoot /drbd/www/html/www.website.ch
JKMount /*.jsp tomcat-worker1
JKMount /*/servlet/ tomcat-worker1
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
<Location "/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/META-INF/">
AllowOverride None
deny from all
</Location>
</VirtualHost>
------------------------------------------------------------
The server.xml entry for this site is:
----------------------------------------------------------------------
<Host name="www.k-exp.ch" debug="0" appBase="/drbd/www/html/www.website.ch"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/tomcat5/"
prefix="www.kexp.ch-access."
suffix=".log"
resolveHosts="true"
pattern="combined"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/tomcat5/" prefix="www.kexp.ch_log."
suffix=".txt"
timestamp="false"/>
<Context path="" docBase="" debug="0"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"
pathname="/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml"/>
</Host>
-------------------------------------------------------------
I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change is
that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (=> several virtual network interfaces). It would be
much more simple, when i only had one virtual host.
But, if i want to access a jsp website, i get an internal server error
mesage.
HTML-Sites work properly.
It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?
Any idea? Thanks for help beforehand!
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Got trouble with virtual hosts
Posted by rueh hänä <ru...@gmx.net>.
Hm, so it should work, i got an actual version.
I found out something new:
When i open one of these jsp-sites on my server, it works fine. If i open
additional jsp-sites, tomcat goes down and i have to restart it. The log of
the site gives this outpuot:
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null
at org.apache.jasper.compiler.TldLocationsCache.init() (Unknown Source)
at
org.apache.jasper.compiler.TldLocationsCache.getLocation(java.lang.String)
(Unknown Source)
at
org.apache.jasper.JspCompilationContext.getTldLocation(java.lang.String)
(Unknown Source)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
at
org.apache.jasper.compiler.Parser.parseDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
at
org.apache.jasper.compiler.Parser.parseElements(org.apache.jasper.compiler.Node)
(Unknown Source)
at
org.apache.jasper.compiler.Parser.parse(org.apache.jasper.compiler.ParserController,
org.apache.jasper.compiler.JspReader, org.apache.jasper.compile
at org.apache.jasper.compiler.ParserController.doParse(java.lang.String,
org.apache.jasper.compiler.Node, java.net.URL) (Unknown Source)
at org.apache.jasper.compiler.ParserController.parse(java.lang.String)
(Unknown Source)
at org.apache.jasper.compiler.Compiler.generateJava() (Unknown Source)
at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext) (U
at
org.apache.catalina.core.StandardValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)
> --- Ursprüngliche Nachricht ---
> Von: "Parsons Technical Services" <pa...@earthlink.net>
> An: "Tomcat Users List" <to...@jakarta.apache.org>
> Betreff: Re: Got trouble with virtual hosts
> Datum: Mon, 29 Aug 2005 08:00:59 -0400
>
> Tomcat will handle them just fine with the current releases.
>
> With the current versions of Tomcat, unless you are doing something
> special
> that requires a feature of Apache that is not in Tomcat, you can host
> multiple sites just fine. If load is an issue, take a look a the
> clustering.
> Otherwise just set up Tomcat with the virtual host and enjoy the
> simplicity.
>
> Start here:
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html
>
> Then read the link for host. Simply put, for each website put a host
> element
> in for that site. But make sure you understand the default host.
>
> Doug
>
>
> ----- Original Message -----
> From: ""rueh hänä"" <ru...@gmx.net>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Monday, August 29, 2005 7:52 AM
> Subject: Re: Got trouble with virtual hosts
>
>
> > Because im running normal HTML sites, too. I need another solution, if
> > even
> > possible...
> >
> >
> >> --- Ursprüngliche Nachricht ---
> >> Von: "Parsons Technical Services" <pa...@earthlink.net>
> >> An: "Tomcat Users List" <to...@jakarta.apache.org>
> >> Betreff: Re: Got trouble with virtual hosts
> >> Datum: Mon, 29 Aug 2005 07:41:50 -0400
> >>
> >> Unless there is another reason, why not drop Apache and run only
> Tomcat?
> >> It
> >> can handle the virtual hosts just fine.
> >>
> >> This would simplify the setup considerably.
> >>
> >> Doug
> >>
> >>
> >> ----- Original Message -----
> >> From: ""rueh hänä"" <ru...@gmx.net>
> >> To: <to...@jakarta.apache.org>
> >> Sent: Monday, August 29, 2005 6:58 AM
> >> Subject: Got trouble with virtual hosts
> >>
> >>
> >> > Hi there
> >> >
> >> > I dont know, what term to search for.. so excuse me, if there is
> >> > already
> >> a
> >> > similar problem
> >> >
> >> > I'm running a Webserver on Fedora Core 4
> >> >
> >> > - Apache 2.0.54
> >> > - tomcat5-5.0.30-5jpp_6fc
> >> >
> >> > I want to run about 13 Websites (html and jsp) over one virtual host.
> >> > So
> >> i
> >> > defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry
> i
> >> > added the websites. For example:
> >> >
> >> > -------------------------------------------------
> >> > <VirtualHost 192.168.0.170:80>
> >> > ServerName www.website.ch
> >> > DocumentRoot /drbd/www/html/www.website.ch
> >> > JKMount /*.jsp tomcat-worker1
> >> > JKMount /*/servlet/ tomcat-worker1
> >> > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> >> > DirectoryIndex index.jsp index.html index.php index.htm index.shtml
> >> > index.cgi
> >> > <Location "/WEB-INF/">
> >> > AllowOverride None
> >> > deny from all
> >> > </Location>
> >> > <Location "/META-INF/">
> >> > AllowOverride None
> >> > deny from all
> >> > </Location>
> >> > </VirtualHost>
> >> > ------------------------------------------------------------
> >> >
> >> > The server.xml entry for this site is:
> >> >
> ----------------------------------------------------------------------
> >> > <Host name="www.k-exp.ch" debug="0"
> >> > appBase="/drbd/www/html/www.website.ch"
> >> > unpackWARs="true" autoDeploy="true">
> >> > <Valve className="org.apache.catalina.valves.AccessLogValve"
> >> > directory="/var/log/tomcat5/"
> >> > prefix="www.kexp.ch-access."
> >> > suffix=".log"
> >> > resolveHosts="true"
> >> > pattern="combined"/>
> >> > <Logger className="org.apache.catalina.logger.FileLogger"
> >> > directory="/var/log/tomcat5/"
> prefix="www.kexp.ch_log."
> >> > suffix=".txt"
> >> > timestamp="false"/>
> >> >
> >> > <Context path="" docBase="" debug="0"/>
> >> >
> >> > <Realm className="org.apache.catalina.realm.MemoryRealm"
> >> >
> >> > pathname="/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml"/>
> >> > </Host>
> >> > -------------------------------------------------------------
> >> >
> >> > I'm replacing the actually active server with a new one. I overtook
> the
> >> > config-files from the active server, so they should work. The only
> >> change
> >> > is
> >> > that thing with the virtual hosts. In the old config, all sites had
> >> their
> >> > own virtualhost setting (=> several virtual network interfaces). It
> >> would
> >> > be
> >> > much more simple, when i only had one virtual host.
> >> > But, if i want to access a jsp website, i get an internal server
> error
> >> > mesage.
> >> > HTML-Sites work properly.
> >> >
> >> > It seems, that tomcat cant translate the hostnames defined in
> >> httpd.conf.
> >> > Can only apache do this? Or do i have to do some additional changes
> to
> >> my
> >> > configs?
> >> >
> >> > Any idea? Thanks for help beforehand!
> >> >
> >> > --
> >> > GMX DSL = Maximale Leistung zum minimalen Preis!
> >> > 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
> >> > http://www.gmx.net/de/go/dsl
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> > --
> > Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> > Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Got trouble with virtual hosts
Posted by Parsons Technical Services <pa...@earthlink.net>.
Tomcat will handle them just fine with the current releases.
With the current versions of Tomcat, unless you are doing something special
that requires a feature of Apache that is not in Tomcat, you can host
multiple sites just fine. If load is an issue, take a look a the clustering.
Otherwise just set up Tomcat with the virtual host and enjoy the simplicity.
Start here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html
Then read the link for host. Simply put, for each website put a host element
in for that site. But make sure you understand the default host.
Doug
----- Original Message -----
From: ""rueh hänä"" <ru...@gmx.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, August 29, 2005 7:52 AM
Subject: Re: Got trouble with virtual hosts
> Because im running normal HTML sites, too. I need another solution, if
> even
> possible...
>
>
>> --- Ursprüngliche Nachricht ---
>> Von: "Parsons Technical Services" <pa...@earthlink.net>
>> An: "Tomcat Users List" <to...@jakarta.apache.org>
>> Betreff: Re: Got trouble with virtual hosts
>> Datum: Mon, 29 Aug 2005 07:41:50 -0400
>>
>> Unless there is another reason, why not drop Apache and run only Tomcat?
>> It
>> can handle the virtual hosts just fine.
>>
>> This would simplify the setup considerably.
>>
>> Doug
>>
>>
>> ----- Original Message -----
>> From: ""rueh hänä"" <ru...@gmx.net>
>> To: <to...@jakarta.apache.org>
>> Sent: Monday, August 29, 2005 6:58 AM
>> Subject: Got trouble with virtual hosts
>>
>>
>> > Hi there
>> >
>> > I dont know, what term to search for.. so excuse me, if there is
>> > already
>> a
>> > similar problem
>> >
>> > I'm running a Webserver on Fedora Core 4
>> >
>> > - Apache 2.0.54
>> > - tomcat5-5.0.30-5jpp_6fc
>> >
>> > I want to run about 13 Websites (html and jsp) over one virtual host.
>> > So
>> i
>> > defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
>> > added the websites. For example:
>> >
>> > -------------------------------------------------
>> > <VirtualHost 192.168.0.170:80>
>> > ServerName www.website.ch
>> > DocumentRoot /drbd/www/html/www.website.ch
>> > JKMount /*.jsp tomcat-worker1
>> > JKMount /*/servlet/ tomcat-worker1
>> > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> > DirectoryIndex index.jsp index.html index.php index.htm index.shtml
>> > index.cgi
>> > <Location "/WEB-INF/">
>> > AllowOverride None
>> > deny from all
>> > </Location>
>> > <Location "/META-INF/">
>> > AllowOverride None
>> > deny from all
>> > </Location>
>> > </VirtualHost>
>> > ------------------------------------------------------------
>> >
>> > The server.xml entry for this site is:
>> > ----------------------------------------------------------------------
>> > <Host name="www.k-exp.ch" debug="0"
>> > appBase="/drbd/www/html/www.website.ch"
>> > unpackWARs="true" autoDeploy="true">
>> > <Valve className="org.apache.catalina.valves.AccessLogValve"
>> > directory="/var/log/tomcat5/"
>> > prefix="www.kexp.ch-access."
>> > suffix=".log"
>> > resolveHosts="true"
>> > pattern="combined"/>
>> > <Logger className="org.apache.catalina.logger.FileLogger"
>> > directory="/var/log/tomcat5/" prefix="www.kexp.ch_log."
>> > suffix=".txt"
>> > timestamp="false"/>
>> >
>> > <Context path="" docBase="" debug="0"/>
>> >
>> > <Realm className="org.apache.catalina.realm.MemoryRealm"
>> >
>> > pathname="/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml"/>
>> > </Host>
>> > -------------------------------------------------------------
>> >
>> > I'm replacing the actually active server with a new one. I overtook the
>> > config-files from the active server, so they should work. The only
>> change
>> > is
>> > that thing with the virtual hosts. In the old config, all sites had
>> their
>> > own virtualhost setting (=> several virtual network interfaces). It
>> would
>> > be
>> > much more simple, when i only had one virtual host.
>> > But, if i want to access a jsp website, i get an internal server error
>> > mesage.
>> > HTML-Sites work properly.
>> >
>> > It seems, that tomcat cant translate the hostnames defined in
>> httpd.conf.
>> > Can only apache do this? Or do i have to do some additional changes to
>> my
>> > configs?
>> >
>> > Any idea? Thanks for help beforehand!
>> >
>> > --
>> > GMX DSL = Maximale Leistung zum minimalen Preis!
>> > 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
>> > http://www.gmx.net/de/go/dsl
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
> --
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Got trouble with virtual hosts
Posted by rueh hänä <ru...@gmx.net>.
Because im running normal HTML sites, too. I need another solution, if even
possible...
> --- Ursprüngliche Nachricht ---
> Von: "Parsons Technical Services" <pa...@earthlink.net>
> An: "Tomcat Users List" <to...@jakarta.apache.org>
> Betreff: Re: Got trouble with virtual hosts
> Datum: Mon, 29 Aug 2005 07:41:50 -0400
>
> Unless there is another reason, why not drop Apache and run only Tomcat?
> It
> can handle the virtual hosts just fine.
>
> This would simplify the setup considerably.
>
> Doug
>
>
> ----- Original Message -----
> From: ""rueh hänä"" <ru...@gmx.net>
> To: <to...@jakarta.apache.org>
> Sent: Monday, August 29, 2005 6:58 AM
> Subject: Got trouble with virtual hosts
>
>
> > Hi there
> >
> > I dont know, what term to search for.. so excuse me, if there is already
> a
> > similar problem
> >
> > I'm running a Webserver on Fedora Core 4
> >
> > - Apache 2.0.54
> > - tomcat5-5.0.30-5jpp_6fc
> >
> > I want to run about 13 Websites (html and jsp) over one virtual host. So
> i
> > defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
> > added the websites. For example:
> >
> > -------------------------------------------------
> > <VirtualHost 192.168.0.170:80>
> > ServerName www.website.ch
> > DocumentRoot /drbd/www/html/www.website.ch
> > JKMount /*.jsp tomcat-worker1
> > JKMount /*/servlet/ tomcat-worker1
> > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> > DirectoryIndex index.jsp index.html index.php index.htm index.shtml
> > index.cgi
> > <Location "/WEB-INF/">
> > AllowOverride None
> > deny from all
> > </Location>
> > <Location "/META-INF/">
> > AllowOverride None
> > deny from all
> > </Location>
> > </VirtualHost>
> > ------------------------------------------------------------
> >
> > The server.xml entry for this site is:
> > ----------------------------------------------------------------------
> > <Host name="www.k-exp.ch" debug="0"
> > appBase="/drbd/www/html/www.website.ch"
> > unpackWARs="true" autoDeploy="true">
> > <Valve className="org.apache.catalina.valves.AccessLogValve"
> > directory="/var/log/tomcat5/"
> > prefix="www.kexp.ch-access."
> > suffix=".log"
> > resolveHosts="true"
> > pattern="combined"/>
> > <Logger className="org.apache.catalina.logger.FileLogger"
> > directory="/var/log/tomcat5/" prefix="www.kexp.ch_log."
> > suffix=".txt"
> > timestamp="false"/>
> >
> > <Context path="" docBase="" debug="0"/>
> >
> > <Realm className="org.apache.catalina.realm.MemoryRealm"
> > pathname="/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml"/>
> > </Host>
> > -------------------------------------------------------------
> >
> > I'm replacing the actually active server with a new one. I overtook the
> > config-files from the active server, so they should work. The only
> change
> > is
> > that thing with the virtual hosts. In the old config, all sites had
> their
> > own virtualhost setting (=> several virtual network interfaces). It
> would
> > be
> > much more simple, when i only had one virtual host.
> > But, if i want to access a jsp website, i get an internal server error
> > mesage.
> > HTML-Sites work properly.
> >
> > It seems, that tomcat cant translate the hostnames defined in
> httpd.conf.
> > Can only apache do this? Or do i have to do some additional changes to
> my
> > configs?
> >
> > Any idea? Thanks for help beforehand!
> >
> > --
> > GMX DSL = Maximale Leistung zum minimalen Preis!
> > 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
> > http://www.gmx.net/de/go/dsl
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Got trouble with virtual hosts
Posted by Parsons Technical Services <pa...@earthlink.net>.
Unless there is another reason, why not drop Apache and run only Tomcat? It
can handle the virtual hosts just fine.
This would simplify the setup considerably.
Doug
----- Original Message -----
From: ""rueh hänä"" <ru...@gmx.net>
To: <to...@jakarta.apache.org>
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts
> Hi there
>
> I dont know, what term to search for.. so excuse me, if there is already a
> similar problem
>
> I'm running a Webserver on Fedora Core 4
>
> - Apache 2.0.54
> - tomcat5-5.0.30-5jpp_6fc
>
> I want to run about 13 Websites (html and jsp) over one virtual host. So i
> defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
> added the websites. For example:
>
> -------------------------------------------------
> <VirtualHost 192.168.0.170:80>
> ServerName www.website.ch
> DocumentRoot /drbd/www/html/www.website.ch
> JKMount /*.jsp tomcat-worker1
> JKMount /*/servlet/ tomcat-worker1
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> DirectoryIndex index.jsp index.html index.php index.htm index.shtml
> index.cgi
> <Location "/WEB-INF/">
> AllowOverride None
> deny from all
> </Location>
> <Location "/META-INF/">
> AllowOverride None
> deny from all
> </Location>
> </VirtualHost>
> ------------------------------------------------------------
>
> The server.xml entry for this site is:
> ----------------------------------------------------------------------
> <Host name="www.k-exp.ch" debug="0"
> appBase="/drbd/www/html/www.website.ch"
> unpackWARs="true" autoDeploy="true">
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="/var/log/tomcat5/"
> prefix="www.kexp.ch-access."
> suffix=".log"
> resolveHosts="true"
> pattern="combined"/>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="/var/log/tomcat5/" prefix="www.kexp.ch_log."
> suffix=".txt"
> timestamp="false"/>
>
> <Context path="" docBase="" debug="0"/>
>
> <Realm className="org.apache.catalina.realm.MemoryRealm"
> pathname="/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml"/>
> </Host>
> -------------------------------------------------------------
>
> I'm replacing the actually active server with a new one. I overtook the
> config-files from the active server, so they should work. The only change
> is
> that thing with the virtual hosts. In the old config, all sites had their
> own virtualhost setting (=> several virtual network interfaces). It would
> be
> much more simple, when i only had one virtual host.
> But, if i want to access a jsp website, i get an internal server error
> mesage.
> HTML-Sites work properly.
>
> It seems, that tomcat cant translate the hostnames defined in httpd.conf.
> Can only apache do this? Or do i have to do some additional changes to my
> configs?
>
> Any idea? Thanks for help beforehand!
>
> --
> GMX DSL = Maximale Leistung zum minimalen Preis!
> 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
> http://www.gmx.net/de/go/dsl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org