You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sa...@magproductions.nl on 2004/09/03 08:53:50 UTC

RE: Tomcat connected to apache via proxy gives virtual host problems

Yes, we did that. But it doesn't work. Is it possible at all using
proxying and if so, how? Or should we make the switch to jk2?

>
> Hola,
> If you're defining the host in server.xml, you can make webapps/foo/bar
> the host's appBase.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
>>-----Original Message-----
>>
>>Hi,
>>
>>We are running tomcat5, proxied to apache. So far this has worked fine,
>>but now we want to attach a virtual host to a subdirectory. So we have
>>
>>host1.com   maps to   webapps/
>>host2.com   maps to   webapps/foo/bar
>>
>>Now, on host2.com paths are relative to webapps rather than
>>webapps/foo/bar. And thus, images can't be found and sessions don't
> work.
>>I'm inclined to think  since everything is proxied to localhost, tomcat
>>doesn't even know it's supposed to be a virtual host.
>>
>>Is there a solution to this?
>>
>>TIA, Sandor Vroemisse



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org