Igor,<br><br><div class="gmail_quote">On Sat, Jan 17, 2009 at 1:38 PM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru" target="_blank">is@rambler-co.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>On Sat, Jan 17, 2009 at 12:02:42PM +0530, Vishnu Kumar D R wrote:<br>
<br>
&gt; Thank you very much Igor,<br>
&gt; I have gained some expertise in Nginx :)<br>
&gt;<br>
&gt; Also, How do we make rewrite invisible to viewers, cause the rewrite is<br>
&gt; visible for every link in the site <a href="http://klk.example.com" target="_blank">klk.example.com</a>.<br>
<br>
</div></div>These rewrite&#39;s are internal and invisible for client.<br>
However, it&#39;s better to use just:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location = / {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="http://localhost:6081/Kolkata" target="_blank">http://localhost:6081/Kolkata</a>;<br>
<div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include /usr/local/nginx/includes/proxy.conf;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
<br>
</div>--<br>
<div><div></div><div>Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>I am getting a error when i edited as you had said above<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">2009/01/21 20:38:07 [emerg] 15886#0: &quot;proxy_pass&quot; may not have URI part in location given by regular expression, or inside named location, or inside the &quot;if&quot; statement, or inside the &quot;limit_except&quot; block in /usr/local/nginx/vhosts/server03.conf:9</span><br>

</div><br>The server03.conf exists like this<br><br style="font-family: comic sans ms,sans-serif;"><div style="margin-left: 40px;"><span style="font-family: arial,helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; <font style="font-family: courier new,monospace;" size="2">&nbsp;&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location = / {</font></span><font style="font-family: courier new,monospace;" size="2"><br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($host ~* klk\.explocity\.com$) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://localhost:6081/Kolkata" target="_blank">http://localhost:6081/Kolkata</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include /usr/local/nginx/includes/proxy.conf;<br>

&nbsp;&nbsp;&nbsp;&nbsp; 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br></font></div><br>Please advice<br>Also, i have hosted this <a href="http://klk.explocity.com" target="_blank">klk.explocity.com</a> using the rewrite(.*)<br>If you have a look at the site, it shows the /Kolkata in all.<br>

Technically speaking, its not an ideal rewrite, right?<br><br>Vishnu<br>