<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;color:#00000;'><div>At <a href="http://menmachinesmaterials.com/SeasideDoc" target="_blank">http://menmachinesmaterials.com/SeasideDoc</a> <br></div><div>at the Left hand menu under Apps....<br></div><div><br></div><div>If you click "Zurb Foundation" you see the zurb styling with javascript, css and images served via NGINX <br></div><div><br></div><div>For example, the CSS is served via a nginx location block...<br></div><div><br></div><pre> location ~* .(css)$ {
try_files /zurb/css/$uri /zurb/css/building_blocks/$uri =400;
expires 1y;
sendfile on;
tcp_nopush on;
default_type text/css;
add_header Content-Type: text/css;
}
<br></pre><div>However, if you select Apps->Twitter Bootstrap or Apps->JQuery UI you will see that the css/images/javascript are not served.<br></div><div><br></div><div><br></div><div>This is because they are stored in a FileLibrary(?) internal to the application.<br></div><div><br></div><div>I realize that I *Could* modify both web apps to use external CSS/Javascript etc....<br></div><div><br></div><div>However, if possible, I would prefer to have NGINX ignore the location ~* .(css) etc when accessing the locations for the apps...<br></div><div><br></div><div><br></div><pre> location /bootstrap {
proxy_pass <a target="_blank" href="http://127.0.0.1:8080">http://127.0.0.1:8080</a>;
}
location ~* ^/javascript/jquery-ui {
proxy_pass <a target="_blank" href="http://127.0.0.1:8080">http://127.0.0.1:8080</a>;
}
<br></pre><div>Any pointers greatly appreciated.<br></div><div><br></div><div>thx</div><div><br></div><div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div><br></div></blockquote></div><div><br></div></div><br></body></html>