Thanks Igor,<br><br>Its working<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
<br>
</div>Then you do not need this location:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; location = / {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) / last;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
at all.<br>
<div class="Ih2E3d"><br></div></blockquote></div>I look like a fool now.<br><br>Anyway, is this rewrite possible( for two domains <a href="http://server03.example.com">server03.example.com</a> and <a href="http://klk.example.com">klk.example.com</a>)<br>
<br><div style="margin-left: 40px;">if ($host ~* klk\.example\.com$) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location = / {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite (.*) /Kolkata last;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> location / {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass <a href="http://localhost:6081">http://localhost:6081</a>;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include /usr/local/nginx/includes/proxy.conf;<br><div class="Ih2E3d">
&nbsp; &nbsp; &nbsp; &nbsp; }</div><br></div>Meaning that for server03 no rewrite and for klk rewrite to /Kolkata<br>(since both domains are in same zope instance running behind varnish)<br>Or do i have to create separate server config for both domains<br>
<br><br>Thanks<br>Vishnu<br>