Skip to content

Test Server not displaying Cope system - 404 errors #330

@marshalc

Description

@marshalc
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions