You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
4 years ago
|
upstream php {
|
||
|
server unix:/tmp/php-cgi.socket;
|
||
|
server 127.0.0.1:9000;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
server_name domain.tld;
|
||
|
root /var/www/wordpress;
|
||
|
index index.php;
|
||
|
|
||
|
location = /favicon.ico {
|
||
|
log_not_found off;
|
||
|
access_log off;
|
||
|
}
|
||
|
|
||
|
location = /robots.txt {
|
||
|
allow all;
|
||
|
log_not_found off;
|
||
|
access_log off;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /index.php?$args;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
||
|
include fastcgi_params;
|
||
|
fastcgi_intercept_errors on;
|
||
|
fastcgi_pass php;
|
||
|
#The following parameter can be also included in fastcgi_params file
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
}
|
||
|
|
||
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||
|
expires max;
|
||
|
log_not_found off;
|
||
|
}
|
||
|
}
|