updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / spawn-fcgi-php / server.conf.example
blob06160cfb2b9dc7a0110f428e87b139dd39f5ded5
1 server {
2         listen 80;
3         server_name domain.tld;
4         root /srv/http/domain.tld;
6         index index.php index.html;
7         
8         access_log logs/access.log;
9         error_log logs/error.log;
11         location ~ \.php {
12                 # TCP
13                 fastcgi_pass  127.0.0.1:9000;
14                 # or SOCKET
15                 #fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.sock;
16                 fastcgi_index  index.php;
17                 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
18                 include /etc/nginx/conf/fastcgi_params;
19         }
20         include public_html.conf.example;
22 # vi: ft=nginx