Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Instance running through Nginx on a specific port.

Instance running through Nginx on a specific port.

Added by Nickolas De Luca Alberton about 4 years ago

I tried setting up an OpenProject instance in our local server. Since we already have anoter service running on port 80, I tried setting it up on a specific port, in this case, it is port 8066. I managed to get OpenProject page to open, but whenever I navigate to another page or section, it defaults back to port 80.

I have the server's hostname set to our "<our name address>:8066", but It still defaults back to port 80. 

I don't know what else to do...

This is my instance's Nginx configuration file:

server {
   listen 8066;
   listen [::]:8066;

   server_name <our name address>:8066;

   root /opt/openproject/public;

   location ~ ^/openproject(/.*|$) {
        proxy_pass_request_headers on;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:6000;
   }
}

What is interesting is that not all actions have this issue...

Example: If I go to Administration settings, it throws me back to port 80... but if I change the url to :8066 it access the page I tried to access. After this, I can access all the subsections, e.g. User & Permissions, Work Packages, etc, and it will access through port 8066...

Any help is appreciated.


Loading...