httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Legido <j...@legido.com>
Subject Re: [users@httpd] Rewrite inside Location directive
Date Mon, 04 Apr 2011 02:07:31 GMT
On Sat, Apr 2, 2011 at 5:38 PM, Rich Bowen <rbowen@rcbowen.com> wrote:
>
>
>
> <Location /old >
>
> RewriteRule  ^/old(.*) http://%{HTTP_HOST}//new  [PT]
>
> </Location>
>
> By the way, there are much better ways to do this. Basically what you're
> saying there is
> Alias /old /path/to/new
>
> which would be more efficient

Thanks for all responses.
I have an application in path app.
I want to have two differents ways ti access to this app, with a
personal certificate and with personal certificate.

I ask for certificate inside location (for ex. certificate) and then
rewrite to app.
If I make and alias, always goes to app without ask for certificate.
Excuse me for my english, I don't know if I write this so good.

http://server.com/app -> goes to app without ask for personal certificate.
http://server.com/certificate -> ask certificate in Location and the
rewrite to -> http://server.com/app

Thank you!

---------------------------------------------------------------------
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