Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
RewriteEngine On RewriteRule ^/$ /app R,L <Location /app> ProxyPass http://example.com:8888/app ProxyPassReverse http://example.com:8888/app ... </Location>i am trying to get the absolute url such as /app/xyz/123 when requesting http://www.example.com/app/xyz/123 but using CGI's url() method $q->url(rewrite => 1, absolute => 1); gives me http://www.example.com:8888/app/xyz/123 instead. setting rewrite to false generate '/app' only. anyone knows the correct to do this? thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: question on CGI module's url with mod_rewrite
by naChoZ (Curate) on Dec 12, 2007 at 19:40 UTC | |
by Anonymous Monk on Dec 12, 2007 at 20:54 UTC |