Help required
Zeeshan Opel
zeeshanopel at gmail.com
Mon Aug 19 06:53:56 UTC 2019
Dear members,
need your help regarding below nginx configuration. I have below config on
my nginx server but I am unable to rewrite the link. Please help me.
worker_processes 1;
worker_rlimit_nofile 30000;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name 192.168.17.53;#This is my nginx server
rewrite ^ 172.17.5.157/mailsvr/mail$ 172.17.5.157/mail
permanent;#trying to rewrite 172.17.5.157/mailsvr/mail to 172.17.5.157
/mail
client_max_body_size 100m;
location /{
proxy_pass http://172.17.5.157;
proxy_redirect off;
proxy_buffering off;
proxy_set_header X-Real-IP $192.168.17.53;
proxy_set_header X-Forwarded-For $172.17.5.157;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
#proxy_pass $authenticated;
proxy_read_timeout 240;
}#end location
}#end server
}#end http
--
Zeeshan Qaiser Opel
+92-301-8446630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190819/df03a4a7/attachment.html>
More information about the nginx
mailing list