<div>Here it is:</div>
<div>&nbsp;</div>
<div>If there is any other prob that&nbsp;anyone finds&nbsp;with this config, please let me know.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Rakesh.</div>
<div>=====================START=====================</div>
<div>#user&nbsp; nobody;<br>worker_processes&nbsp; 1;</div>
<div>#error_log&nbsp; logs/error.log;<br>#error_log&nbsp; logs/error.log&nbsp; notice;<br>#error_log&nbsp; logs/error.log&nbsp; info;</div>
<div>#pid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logs/nginx.pid;</div>
<div><br>events {<br>&nbsp;&nbsp;&nbsp; worker_connections&nbsp; 1024;<br>}</div>
<div><br>http {<br>&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mime.types;<br>&nbsp;&nbsp;&nbsp; default_type&nbsp; application/octet-stream;</div>
<div>&nbsp;&nbsp;&nbsp; #log_format&nbsp; main&nbsp; &#39;$remote_addr - $remote_user [$time_local] $request &#39;<br>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;&quot;$status&quot; $body_bytes_sent &quot;$http_referer&quot; &#39;<br>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;</div>

<div>&nbsp;&nbsp;&nbsp; #access_log&nbsp; logs/access.log&nbsp; main;</div>
<div>&nbsp;&nbsp;&nbsp; sendfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on;<br>&nbsp;&nbsp;&nbsp; #tcp_nopush&nbsp;&nbsp;&nbsp;&nbsp; on;</div>
<div>&nbsp;&nbsp;&nbsp; #keepalive_timeout&nbsp; 0;<br>&nbsp;&nbsp;&nbsp; keepalive_timeout&nbsp; 65;</div>
<div>&nbsp;&nbsp;&nbsp; gzip&nbsp; on;<br>gzip_http_version 1.0;<br>gzip_min_length&nbsp; 1100;<br>gzip_comp_level 2;<br>gzip_proxied any;<br>gzip_vary on;<br>gzip_types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text/plain text/html text/css text/xml application/x-javascript application/pdf application/xml application/\<br>
xml+rss text/javascript;<br>gzip_disable &quot;MSIE [1-6]\.&quot;;<br>#gzip_buffers 128 8k;</div>
<div>&nbsp;&nbsp;&nbsp; server {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_name&nbsp; localhost;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #charset koi8-r;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #access_log&nbsp; logs/host.access.log&nbsp; main;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp; html/mysite;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index&nbsp; index.html index.htm view.html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error_page 404 = @jetty;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>location /testsite/ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root /usr/local/nginx/html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index index.html view.html /view.html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error_page 404 = @jetty;<br>}</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location @jetty {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #error_page&nbsp; 404&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /404.html;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # redirect server error pages to the static page /50x.html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error_page&nbsp;&nbsp; 500 502 503 504&nbsp; /50x.html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location = /50x.html {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp; html;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~* ^.+\.(jsp|json)*$ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #proxy_redirect false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include /usr/local/nginx/conf/proxy.conf;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~ /bind$<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include /usr/local/nginx/conf/proxy.conf;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location /testsite/images/store/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include /usr/local/nginx/conf/proxy.conf;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>

<div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~ /\.ht {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deny&nbsp; all;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br></div>
<div>==========THE END==========<br><br></div>
<div class="gmail_quote">On Feb 18, 2008 4:01 PM, Denis F. Latypoff &lt;<a href="mailto:denis@gostats.ru">denis@gostats.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello just,<br>
<div>
<div></div>
<div class="Wj3C7c"><br>Monday, February 18, 2008, 4:26:04 PM, you wrote:<br><br>&gt; hi,<br><br>&gt; When I dont put a trailing &#39;/&#39;, the testsite is redirecting me to localhost.<br><br>&gt; conf file snippet:<br>
&gt; location /testsite/ {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;root /usr/local/nginx/html;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;index index.html view.html /view.html;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;error_page 404 = @jetty;<br>&gt; }<br><br>&gt; Now when I enter <a href="http://www.mysite.com/testsite/" target="_blank">www.mysite.com/testsite/</a> it works fine, but when I try<br>
&gt; <a href="http://www.mysite.com/mysite" target="_blank">www.mysite.com/mysite</a> it redirects me to <a href="http://localhost/testsite/" target="_blank">http://localhost/testsite/</a><br><br>&gt; What is the problem here.<br>
<br>&gt; If you cant come to any conclusion without looking at the conf file let me<br>&gt; know, I will copy it.<br><br></div></div>yes, it would be good if you copy it.<br><br>&gt; Thanks,<br>&gt; Rakesh.<br><font color="#888888"><br>
<br>--<br>Best regards,<br>&nbsp;Denis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:<a href="mailto:denis@gostats.ru">denis@gostats.ru</a><br><br><br></font></blockquote></div><br>