Welcome! Log In Create A New Profile

Advanced

Rewrite https to http expect one location

basti
February 24, 2014 10:12AM
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
https://example.com/mailadmin/test.php?ps=301A1123344556E925803435&framework=
are partly rewrite.

Regards,
Basti

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

Rewrite https to http expect one location

basti February 24, 2014 10:12AM

Re: Rewrite https to http expect one location

Francis Daly February 24, 2014 01:08PM

Re: Rewrite https to http expect one location

basti February 25, 2014 04:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
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