tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rocco Scappatura" <Rocco.Scappat...@sttspa.it>
Subject RE: Tomcat 6 virtual host problem please help
Date Sat, 24 Nov 2007 20:14:37 GMT
> If you were using apache infront of tomcat you can use the proxy to do
> this for you I think
>
> ProxyPass / ajp13://localhost:8009/app/
>
> any requests for '/' go to '/app/' on tomcat

David,

I'm experimenting Apache2.2+mod_proxy_* in front of Tomcat5.5.

I have simply put:

ProxyPass /blog/ http://localhost:8081/roller/blog/
ProxyPassReverse /blog/ http://localhost:8081/roller/blog/

And this finally works!!

Great! But a new problem has raised...

When I access to http://www.example.com/blog and I click on a link inside
the page, I get error of 'document not found'.

Infact, every link on the page is relative to the web app
(http://localhost:8081/roller/). I can't believe that roller developers
have used absolute path ;-) so I think is a problem bound to reverse proxy
configuration.. What it can be?

rocsca

>> Not necessarily.
>>
>> > And even the app name can be avoid in a URL Path?
>>
>> Yes, but look below to understand precisily what I really want.
>>
>> I have an application, say 'app'. I access it trhough:
>>
>> http://www.example.com/app
>>
>> I have a valid URL:
>>
>> http://www.example.com/app/foo
>>
>> I would like to know if it possible to create a shortcut to this latest
>> URL like:
>>
>> http://foo.example.com
>>
>> or
>>
>> http://www.example.com/foo



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message