<div dir="ltr"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><br></font></div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Dear members,</font></div><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><br></font></div><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">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.</font></div>worker_processes  1;<br><br>worker_rlimit_nofile    30000;<br>events {<br>    worker_connections  1024;<br>}<br><br><br>http {<br>    include           mime.types;<br>    default_type      application/octet-stream;<br>    sendfile        on;<br>    keepalive_timeout   65;    <br>    server {<br>        listen            80;<br>        server_name        192.168.17.53;#This is my nginx server<br>        rewrite         ^</font>

<span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif">172.17.5.157</span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">/mailsvr/mail$ <a href="http://172.17.5.157/mail">172.17.5.157/mail</a> permanent;#trying to rewrite </font>

<span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif">172.17.5.157</span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">/mailsvr/mail   to </font><span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif">172.17.5.157</span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">/mail</font>  <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><br>        client_max_body_size    100m;<br><br>        location /{<br>                proxy_pass                     <a href="http://172.17.5.157;/" target="_blank">http://172.17.5.157;</a>                <br>                proxy_redirect                    off;<br>                proxy_buffering                    off;<br>                proxy_set_header     X-Real-IP        $192.168.17.53;<br>                proxy_set_header     X-Forwarded-For        $172.17.5.157;<br>                proxy_set_header    Host            $host;<br>                proxy_set_header    X-Forwarded-Proto    $scheme;<br>                #proxy_pass                    $authenticated;            <br>                proxy_read_timeout                240;<br>            }#end location<br>    }#end server<br>   <br>}#end http</font><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>Zeeshan Qaiser Opel</div><div>+92-301-8446630</div></div></div>