<div dir="ltr"><div>H folks!<br><br></div><div>I am completeley newbie to nginx<br></div><div><br></div>I have the following config<br><br>        # Forward request to /demo to tomcat.  This is for<br>         # the BigBlueButton api demos.<br>

       location /demo {<br>           rewrite ^ /upvc;<br>           proxy_pass         <a href="http://127.0.0.1:8080">http://127.0.0.1:8080</a>;<br>           proxy_redirect     default;<br>           proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;<br>

<br>        # Allow 30M uploaded presentation document.<br>           client_max_body_size       30m;<br>           client_body_buffer_size    128k;<br><br>           proxy_connect_timeout      90;<br>           proxy_send_timeout         90;<br>

           proxy_read_timeout         90;<br><br>           proxy_buffer_size          4k;<br>           proxy_buffers              4 32k;<br>           proxy_busy_buffers_size    64k;<br>           proxy_temp_file_write_size 64k;<br>

<br>           include    fastcgi_params;<br>       }<br><br><br>location /upvc {<br>        alias  /var/lib/tomcat6/webapps/demo;<br>        index demo3.jsp;<br>        expires 1m;<br>}<br clear="all"><div><div><br><br>
</div>
<div>Rewrite is working but nginx is not.  proxying to tomcat, because of that returns the jsp file as a plain text file.<br><br></div><div>Please could you help me?<br><br></div><div>Thanks in advance!<br></div><div>-- <br>

--<br>Sergio Belkin  <a href="http://www.sergiobelkin.com" target="_blank">http://www.sergiobelkin.com</a><br>Watch More TV <a href="http://sebelk.blogspot.com" target="_blank">http://sebelk.blogspot.com</a><br>LPIC-2 Certified - <a href="http://www.lpi.org" target="_blank">http://www.lpi.org</a>
</div></div></div>