Open pwgen opened 7 years ago
Ok. I understand what you are meaning.
I know of Bottle being able to mount sub application ... I will give a try with this feature
leading to the right path , but its looking really bad now. the stylesheet paths are prefixed now, but static content is sill served using the old / prefix. links like /dashboard are still without prefix. and for example /login is still /login not /prefix/login. what leads to a 404 error.
but good news are, running it with
[uwsgi] http-socket = 0.0.0.0:5001 socket = 0.0.0.0:5002 And with settings.cfg added : prefix = /foo
and apache_mod_uwsgi
ProxyPass /foo uwsgi://127.0.0.1:5002/
it will run nice with http://testserver.prv/foo/login
the webpage runs nice
Ok, perharps there are still some paths that are not yet prefixed, I did not tested every path yet. I wanted you to make a test with your configuration to confirm that it is the right approach ...
I reopen because there are still some few tests to be done :)
ok i have it running with apache mod uwsgi, all reports are relate to this configuration : the worldmap is not working f.eks /static/plugins/worldmap/static/leaflet/leaflet.css is missing the prefix. dashboard/widgets are broken. detailed service view is broken. shows "loading members data" bummer forever issueing a service recheck shows only generic modal box
I reopen because the current implementation is not yet finished, please do not close this again until I merge #242
i want to be able to set a prefix for the webui to get it run under a different path host by apache2_mod_uwsgi.
apache2.conf.sample <VirtualHost *:80> ProxyPass /test uwsgi://127.0.0.1:5002/ ProxyPassReverse /test uwsgi://127.0.0.1:5002/
the uwsgi should redirect to http://testserver.prv/test/login but its allways redirecting to http://testserver.prv/login