Ask Pathway Tools logo   Pathway Tools Question & Answer forum for SRI's Pathway Tools

Ask Your Question

Pathway tools web server behind nginx

asked 2016-11-01 04:49:26 -0500

anonymous user



I am trying to run pathway tools behind an nginx reverse proxy, so I can access it using http://<server_ip>/pathwaytools/.

But I am hitting the issue that all of the static assets (i.e. the javascript and css etc) are referenced absolutely in the html, as an example <link rel="stylesheet" type="text/css" href="/combined/combined.css">, and pathway tools expects to be running at http://<server_ip>/. Pathway tools then does a request to http://<server_ip>/combined/combined.css which isn't then picked up by the nginx reverse proxy and 404's.

To combat this, sometimes with webapps/webservers there's a way to set the context path it's running on, so it can change the static content URL's accordingly - is there anyway to specify the context path in the pathway tools web server application? Or anything else I can set/change to combat this?

Any help you can give is greatly appreciated :)



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-03 16:37:38 -0500

ptools-admin gravatar image

Madison, we don't have any direct experience with Nginx, but we do run our software behind an Apache reverse proxy without the problem you're seeing. I think it's a configuration issue with your proxy settings. Doing a quick search of what works for us on Apache, I think you need to look into the proxy_pass directives:

On our Apache reverse proxy, we have to use both the ProxyPass AND the ProxyPassReverse directives. One possible difference, is that we also use a named based vhost set up, so "/" always translates to "/". Hope this helps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-11-01 04:49:26 -0500

Seen: 2,234 times

Last updated: Nov 03 '16