Getting the URLs right when proxying to apache and mongrel

Cliff Wells cliff at develix.com
Tue Sep 4 02:07:12 MSD 2007


On Sun, 2007-09-02 at 19:15 +0000, Maxim Dounin wrote:

> doesn't. So I was forced to wrote something like this
> 
>      location = /mail {
>          rewrite ^(.*) https://$server_name$1 redirect;
>      }
>      location /mail/ {
>          rewrite ^(.*) https://$server_name$1 redirect;
>      }
> 

location ~ /mail(/?) {
    rewrite ^(.*) https://$server_name$1 redirect;
}

Regards,
Cliff






More information about the nginx mailing list