Nginx URL rewriting issue -
i need nginx rewriting. have script running follows
http://domain.com:2095/secretkey/something
now above command takes user ip address automatically , want rewrite follows
https://subdomain.domain.com/secretkey/something
i using following rule not working.
server { listen ip:443; server_name subdomain.domain.com location / { rewrite ^(.*)$ $1?ip=$remote_addr break; proxy_pass http://127.0.0.1:2095; } }
Comments
Post a Comment