blob: 06160cfb2b9dc7a0110f428e87b139dd39f5ded5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
server {
listen 80;
server_name domain.tld;
root /srv/http/domain.tld;
index index.php index.html;
access_log logs/access.log;
error_log logs/error.log;
location ~ \.php {
# TCP
fastcgi_pass 127.0.0.1:9000;
# or SOCKET
#fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
include public_html.conf.example;
}
# vi: ft=nginx
|