Open link in a new tab

Content

Expand project menu

Instance running through Nginx on a specific port.

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.