Some additional information: The "blank page" is actually a "400 Bad
Request" response.

A 404 I could understand - especially when the directoy does not exist -
but why it returns 400 is a total mystery. There's nothing in the log
files, the access log just mentions the 400 response. There is also
nothing in the response or its headers to further explain what's wrong
with the request.

Mike.

> -----Original Message-----
> From: Looijmans, Mike 
> Sent: maandag 23 november 2009 14:06
> To: Tomcat Users List
> Subject: RE: Redirecting a port to a webapp
> 
> > Because you want different sets of webapps served on your different 
> > connectors, I *think* you'll need two different Services in your 
> > server.xml:
> > 
> > <Server>
> >   <Service> for port 80
> >     <Connector> for port 80
> >     <Engine> for port 80
> >       <Host> for port 80, specifying base directory for 
> your port 80 
> > webapps
> >     </Engine> for port 80
> >   </Service> for port 80
> > 
> >   <Service> for port 666
> >     <Connector> for port 666
> >     <Engine> for port 666
> >       <Host> for port 666, specifying base directory for 
> your port 666 
> > webapps
> >     </Engine> for port 666
> >   </Service> for port 666
> > </Server>
> > 
> > The fastest way to make such a configuration will be to edit your 
> > existing server.xml, copy+paste the <Service>...</Service> section 
> > (which is most of the file) and hack at the copy as necessary.
> 
> I tried this, just to be able to make some progress on the 
> actual project, but it does not work as expected. I copied 
> the <server> part and replaced:
> 
>       <Host name="localhost" appBase="webapps" />
> 
> with 
> 
>       <Host name="localhost" appBase="webapps/myapp" />
> 
> And changed the connector to use port 666. The result is that 
> when I browse to http://localhost:666/ I get a blank page. No 
> error message, just "nothing". If I change the Host thing to read:
> 
>       <Host name="localhost" 
> appBase="webapps/aDirThatDoesNotExistAtAll"
> />
> 
> I get the same result: Silently nothing.
> 
> If I revert the Host part by removing the subdir, I can acess 
> http://localhost:666/myapp just fine.
> 
> Duh?

This message and attachment(s) are intended solely for use by the addressee and 
may contain information that is privileged, confidential or otherwise exempt 
from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.

If you have received this communication in error, please notify the sender 
immediately by telephone and with a 'reply' message.

Thank you for your co-operation.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to