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%%/static;
          access_log   off;
        }
}
