Project

General

Profile

Redmine not starting after reboot » nginx.conf

nginx.conf: Redmine configuration - Andrejs Eigus, 2015-02-13 14:54

 
1
        server {
2
                listen 80;
3
                server_name projects.ahlers.com;
4
                server_tokens on;
5
                proxy_cache off;
6

    
7
		root /opt/www/projects.ahlers.com;
8

    
9
                access_log  /var/log/nginx/redmine.access_log;
10
                error_log   /var/log/nginx/redmine.error_log;
11

    
12
		include common.conf;
13

    
14
		location / {
15
		    try_files $uri @ruby;
16
		}
17

    
18
                location @ruby {
19
		    proxy_set_header	Host $http_host;                                                                                                                     
20
		    proxy_set_header	X-Real-IP $remote_addr;                                                                                                                   
21
		    proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
22
		    proxy_set_header	X-Forwarded-Proto $scheme;
23
		    proxy_redirect off;
24
		    proxy_read_timeout 300;
25
                    proxy_pass		http://redmine;
26
                }
27

    
28
        }
29

    
30
}
31

    
(2-2/3)