Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Server not displaying Cope system - 404 errors #330

Open
marshalc opened this issue Jul 11, 2018 · 1 comment
Open

Test Server not displaying Cope system - 404 errors #330

marshalc opened this issue Jul 11, 2018 · 1 comment

Comments

@marshalc
Copy link
Collaborator

Page not found (404)

Request Method: | GET
-- | --
http://dev.nds.ox.ac.uk/cope//

Using the URLconf defined in config.urls, Django tried these URL patterns, in this order:
^i18n/
en-gb/
The current path, /, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

Essentially some part of the nginix/django configuration is inserting an extra slash at the end of the proxy path, but the start of the application path. URLs in the browser look correct, but:

https://dev.nds.ox.ac.uk/cope/ --> http://dev.nds.ox.ac.uk/cope//
http://dev.nds.ox.ac.uk/cope --> redirects to https://dev.nds.ox.ac.uk/cope/en-gb/, and then gives this 404 for http://dev.nds.ox.ac.uk/cope//en-gb/
https://dev.nds.ox.ac.uk/cope/en-gb/admin --> http://dev.nds.ox.ac.uk/cope//en-gb/admin

This isn't affecting the QUOD site, which is presently on Django 1.11.4, so suspecting some sort of interaction issue between Django 2.0.7 (was working with Django 2.0.1?) and NGinx.

@marshalc
Copy link
Collaborator Author

May be related to how I solved this initially - https://stackoverflow.com/questions/44987110/django-in-subdirectory-admin-site-is-not-working/47099986#47099986

https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/ doesn't show any reasons for NGinx not working as expected. And no other clues have appeared in more recent times.

Leaving server in this state as it's not a priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant