Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Mayan EDMS Mayan EDMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 198
    • Issues 198
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mayan EDMSMayan EDMS
  • Mayan EDMSMayan EDMS
  • Issues
  • #383
Closed
Open
Issue created May 03, 2017 by Ghost User@ghost1

Page not found when deployed to sub-uri

Hi, I'm trying to deploy Mayan behind a nginx reverse proxy in a sub uri. I'm using the docker image.

I've followed this steps here (#350), mostly in the section "Configure as Sub-URI for nginx".

Mayan loads fine, but when I click to a document and then click on "Next page" it gives me Page not found error.

Example:
    this works fine:
        http://domain/mayan/documents/page/4/?size=800

    This gives Page not found (404) error
        http://domain/mayan/documents/page/4/navigation/next/?size=800

This happens for any URL down "documents/page/4/navigation/", they are: next/, previous/, first/ and last/.

I also tried to leave the container's nginx untouched and on the frontend proxy I configured like this:

    location /mayan/ {
        rewrite ^/mayan(/.*)$ $1 break;
        proxy_pass          http://127.0.0.1:80/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_redirect    off;
    }

Same results, everything works fine except for the mentioned urls.

The problem is also referred here: https://groups.google.com/forum/#!topic/mayan-edms/9oPas8xWO-8 and here: http://mayan-edms.narkive.com/YES3wnEx/mayan-edms-1408-hosting-mayan-edms-in-sub-url

Thanks

Assignee
Assign to
Time tracking