summaryrefslogtreecommitdiffstats
path: root/mail/sympa/files/nginx.sample.in
blob: 859745a8a09b0923c15350b6607ccae0a4132622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
upstream sympafcgi {
	server unix:/var/run/sympa/wwsympa.socket;
}

server {
	server_name_in_redirect off;
	charset utf-8;
	gzip off;
	location / {
       		fastcgi_param SCRIPT_FILENAME	%%PREFIX%%/libexec/sympa/wwsympa.fcgi;
       		fastcgi_param PATH_INFO		$fastcgi_script_name;

	        fastcgi_param QUERY_STRING	$query_string;
       		fastcgi_param REQUEST_METHOD	$request_method;
       		fastcgi_param CONTENT_TYPE	$content_type;
       		fastcgi_param CONTENT_LENGTH	$content_length;
       		fastcgi_param REQUEST_URI	$request_uri;
       		fastcgi_param REMOTE_ADDR	$remote_addr;
       		fastcgi_param SERVER_NAME	$host;
       		fastcgi_param HTTP_HOST		$host;
       		fastcgi_param SERVER_PORT	$server_port;
		fastcgi_pass	sympafcgi;
	}
	location /static-sympa {
          alias %%DATADIR%%
          access_log   off;
        }
}
OpenPOWER on IntegriCloud