Igor,<br><br><div class="gmail_quote">On Sat, Jan 17, 2009 at 1:38 PM, Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru" target="_blank">is@rambler-co.ru</a>></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>
> Thank you very much Igor,<br>
> I have gained some expertise in Nginx :)<br>
><br>
> Also, How do we make rewrite invisible to viewers, cause the rewrite is<br>
> 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's are internal and invisible for client.<br>
However, it's better to use just:<br>
<br>
location = / {<br>
proxy_pass <a href="http://localhost:6081/Kolkata" target="_blank">http://localhost:6081/Kolkata</a>;<br>
<div> include /usr/local/nginx/includes/proxy.conf;<br>
}<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: "proxy_pass" may not have URI part in location given by regular expression, or inside named location, or inside the "if" statement, or inside the "limit_except" 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;"> <font style="font-family: courier new,monospace;" size="2"> 7 location = / {</font></span><font style="font-family: courier new,monospace;" size="2"><br>
8 if ($host ~* klk\.explocity\.com$) {<br> 9 proxy_pass <a href="http://localhost:6081/Kolkata" target="_blank">http://localhost:6081/Kolkata</a>;<br> 10 include /usr/local/nginx/includes/proxy.conf;<br>
11 }<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>