I am trying to make Omnidb run under the /omnidb path behind a reverse proxy on Ubuntu Server 20.04.
According to configuration, I configure config.py with CUSTOM_PATH = 'omnidb', and I setup Apache with ProxyPass /omnidb http://127.0.0.1:8000/omnidb.
However, when I try to access the /omnidb path, it fails. My omnidb-server logs look like:
Operations to perform:
Apply all migrations: OmniDB_app, admin, auth, contenttypes, sessions, social_django
Running migrations:
No migrations to apply.
Starting OmniDB server...
Checking port availability...
Starting server OmniDB 3.0.3b at 127.0.0.1:8000/omnidb
Open OmniDB in your favorite browser
Press Ctrl+C to exit
WARNING [django.request:224] Not Found: /omnidb
When I edit the ProxyPass directive to 127.0.0.1:8000, the initial redirection works, but it redirects me to /omnidb_login, not /omnidb/omnidb_login
I really can't figured how to make it work : I managed to make it display something using a ReverseProxyPass directive, but then all the HTML's href directives are wrong. I need help !
I am trying to make Omnidb run under the /omnidb path behind a reverse proxy on Ubuntu Server 20.04. According to configuration, I configure
config.py
withCUSTOM_PATH = 'omnidb'
, and I setup Apache withProxyPass /omnidb http://127.0.0.1:8000/omnidb
.However, when I try to access the /omnidb path, it fails. My omnidb-server logs look like:
When I edit the ProxyPass directive to
127.0.0.1:8000
, the initial redirection works, but it redirects me to /omnidb_login, not /omnidb/omnidb_loginHow can I make this work ?