Nick Kew pisze:
Marcin wrote:
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.
Sounds like you want the "Alias" directive.
I don't think so, because it maps to the filesystem. My URLs are not
real, they do
Marcin wrote:
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.
Sounds like you want the "Alias" directive.
--
Nick Kew
-
The official User-T
Krist van Besien pisze:
On Tue, Jan 13, 2009 at 10:45 PM, Marcin 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 UR
On Tue, Jan 13, 2009 at 10:45 PM, Marcin 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 w
2009/1/13 Marcin :
> I've tried to add
>
> RewriteEngine On
> RewriteCond %{HTTP_HOST} (.+)\.demo\.myapp\.com$
> RewriteRule ^/$ /usersite/%1
>
> but the effect is that apache is looking for a file /some/path/usersite/lucy
May be you want to add the [PT] flag?
Bob
---
Hi,
I hope that you could help me, because I've spent hours on googling and
reading mod_rewrite docs and still can't get it working...
What I want to achieve as a final effect is that GET requests like
http://john.demo.myapp.com/
http://lucy.demo.myapp.com/
will be internally rewritten and s