Welcome! Log In Create A New Profile

Advanced

Rewrite all https to http except one location

basti
February 24, 2014 10:02AM
Hello,
I have a SSL config like

server {

server_name ...;

# do not rewrite this
location /mailadmin/(.*.\.php)${
...
# some stuff
}


location / {
...
rewrite ^ http://$server_name$request_uri? permanent;
}

location ~ \.php$ {
...
# php stuff
}
}

URLS like
https://example.com/mailadmin/set.php?p_s=301AB1837E730B55&framework=
are partly rewrite

How can I solve this?
Regards,
Basti



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite all https to http except one location

basti February 24, 2014 10:02AM

Re: Rewrite all https to http except one location

Styopa Semenukha February 24, 2014 10:36AM

Re: Rewrite all https to http except one location

basti February 24, 2014 11:44AM

Re: Rewrite all https to http except one location

Styopa Semenukha February 24, 2014 01:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready