rdmorganiser / rdmo-docker-compose

RDMO running in different docker images held together by docker compose
Apache License 2.0
3 stars 13 forks source link

BASE_URL doesn't apply to all paths #9

Closed suchmaske closed 4 years ago

suchmaske commented 4 years ago

When deploying rdmo with a subdomain, it seems that not all paths are being rewritten correctly.

rdmo/vol/rdmo-app/config/settings/local.py
--
BASE_URL = '/rdmo'

For instance, when visiting the index page, the "Login"/"Anmelden" link in the navbar correctly routes to /rdmo/account/login.

However, other routes (for changing the locale) or routes within forms are not being prepended with the BASE_URL. For example, the link to the registration form or the POST-URL for the login form does not re-route correctly.

Although the BASE_URL is configured, the URLs point to:

grafik

This routing issue makes the app unusable for users when trying to deploy under a server subdirectory path (e.g. example.com/rdmo).

My nginx-snippet on the host OS.

location / {
  proxy_pass http://localhost:8484/;
}
triole commented 4 years ago

During testing the setup again I was not able reproduce the problems you mentioned above. Nonetheless I made tiny changes to make the software a little more error resilient. But these changes shouldn't be connected to what you observed.

Maybe I need a little more information about what you were trying to achieve. Because if I just run the whole setup, building the docker containers from the scratch and opening localhost:8484/rdmo afterwards I do not have any redirecting problems.

How do you run your stuff? And what role exactly does the Nginx play? If you use it as a reverse proxy in front of the Apache we need to make sure that the Nginx setup is correct. The problem could be buried there somewhere as well.