OmniDB / OmniDB

Web tool for database management
https://omnidb.org
MIT License
3.18k stars 446 forks source link

Omnidb fails to work properly with CUSTOM_PATH #1285

Open Faholan opened 3 years ago

Faholan commented 3 years ago

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

How can I make this work ?

Faholan commented 3 years ago

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 !

fofo78 commented 2 years ago

I've exactly the same problem