Project

General

Profile

Go Auto Dial with nginx » nginx_http.conf

Abdul Hayee, 03/12/2014 07:21 AM

 
1
server {
2
	listen    80;
3
	server_name  go.goautodial.org go.goautodial.org;
4
	access_log off;
5
	error_log  /var/log/nginx/go.goautodial.org-error_log crit;	
6
location ~* .(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|html|htm|wml)$ {
7
	root /var/www/html;
8
	expires 365d;
9
	}
10
location /RECORDINGS {
11
        root /var/spool/asterisk/monitorDONE;
12
    }
13

    
14
location /recordings {
15
        root /var/spool/asterisk/monitorDONE;
16
    }
17

    
18
location / {
19
	client_max_body_size    10m;
20
	client_body_buffer_size 128k;
21
	proxy_send_timeout   90;
22
	proxy_read_timeout   90;
23
	proxy_buffer_size    128k;
24
	proxy_buffers     4 256k;
25
	proxy_busy_buffers_size 256k;
26
	proxy_temp_file_write_size 256k;
27
	proxy_connect_timeout 30s;
28
	proxy_redirect  http://www.go.goautodial.org:81   http://www.go.goautodial.org;
29
	proxy_redirect  http://go.goautodial.org:81   http://go.goautodial.org;
30
	proxy_pass   http://127.0.0.1:81/;
31
	proxy_set_header   Host   $host;
32
	proxy_set_header   X-Real-IP  $remote_addr;
33
	proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
34
	}
35
}
36

    
37

    
(2-2/3) Go to top