mongo-expresss / mongo-express

5 stars 11 forks source link

ProxyPass and baseUrl #15

Open midosharma opened 7 years ago

midosharma commented 7 years ago

I thought the baseUrl would suffice to work with an Apache ProxyPass approach, but it doesn't.

In this conf, the app needs to serve files at its root, while being aware the absolute URL contains another component to calculate its CSRF, and to serve the static files at the right paths.

Here are the few modifications I made for my own configuration, in case someone's interested. I'll PR a more generic solution if more people are facing this. VirtualHost configuration

ProxyPass /mongo_express/ http://localhost:8081/ retry=0 ProxyPassReverse /mongo_express/ http://localhost:8081/ retry=0