Rewrite all https to http except one location

basti black.fledermaus at arcor.de
Mon Feb 24 16:43:36 UTC 2014


Sorry same result.

On 24.02.2014 16:34, Styopa Semenukha wrote:
> Use:
>  return 301 http://$server_name$request_uri;
> to redirect.
>
> 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 at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list