Project

General

Profile

How to use Nginx to reverse proxy to redmine

Added by AJ McAteer over 7 years ago

How do I use Nginx to reverse proxy to Nginx I have it running and use -b 192.168.1.40:3000, I realize that home/redmine/current does not exist for me so where is the correct place to point also what if anything else could be wrong?

server {
        listen   80; 
        listen   [::]:80

        root /home/redmine/current;
        index index.html index.htm;

        server_name redmine.mydomain.com;
        access_log /home/redmine/shared/log/access.log;
        error_log  /home/redmine/shared/log/error.log;

        client_max_body_size 5M;

        location / {
                auth_basic "Identify yourself";
                auth_basic_user_file /home/redmine/shared/.htpasswd;
                proxy_pass http://127.0.0.1:3000;
        }
}