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 -

mongodb - Multiple $and with multiple $or in $match mongoose -

Teradata TPT_INFRA: TPT02640: Error: Conflicting column count -