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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -