Welcome! Log In Create A New Profile

Advanced

Re: Rewrite all https to http except one location

Styopa Semenukha
February 24, 2014 01:48PM
> location /mailadmin/(.*.\.php)${
This should probably be:
location ~ /mailadmin/(.*\.php)$ {

Otherwise it's not treated as regex.

On Monday, February 24, 2014 04:01:03 PM basti wrote:
> 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
--
Best regards,
Styopa Semenukha.

_______________________________________________
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: 162
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