Re: Rewrite https to http expect one location

2014-02-25 Thread basti
There is still a rewrite problem with my config: server { ... root $root_directory; index index.php index.html index.htm; fastcgi_index index.php; location ~ /mailadmin/(.*.\.php)$ { root /path/to/root/; ... index index.php; } location / { return

Re: Rewrite https to http expect one location

2014-02-24 Thread Francis Daly
On Mon, Feb 24, 2014 at 04:10:24PM +0100, basti wrote: Hi there, > # do not rewrite this > location /mailadmin/(.*.\.php)$ { You probably will have no requests that will match this prefix location. > location / { > rewrite ^ http://$server_name$request_uri? permanent; Many requests wi

Rewrite https to http expect one location

2014-02-24 Thread basti
Hello, I have a config like: server { ... # do not rewrite this location /mailadmin/(.*.\.php)$ { # some stuff } location / { # some other stuff rewrite ^ http://$server_name$request_uri? permanent; } location ~ \.php$ { # php stuff; } } URLs like htt