httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin <...@saepia.net>
Subject Re: [users@httpd] mod_rewrite redirects instead of silent rewrite
Date Thu, 15 Jan 2009 12:51:56 GMT
Krist van Besien pisze:
> On Tue, Jan 13, 2009 at 10:45 PM, Marcin <www@saepia.net> wrote:
> 
> 
> 
>> I've tried also to force it to treat this as an URL, not a path by passing
>> full URL:
>>
>> RewriteEngine On
>> RewriteCond %{HTTP_HOST} (.+)\.demo\.myapp\.com$
>> RewriteRule ^/$ http://%0/usersite/%1
>>
>> As log says, it constructs URL in a good way, but it invokes 302 redirect.
> 
> Add the [P] flag to force proxying...

I didn't wanted to do proxy, I wanted just to change e.g. /abc to /xyz 
and then pass it directly (without proxing) to rails handler.

But I hadn't found a solution and I'm proxying that

m.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message