> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to