wordpress-audiolab/config/nginx-wordpress.conf

39 lines
802 B
Plaintext

server {
listen 443 ssl default_server;
include snippets/snakeoil.conf;
server_name _;
root /app/wordpress;
index index.php index.html;
client_max_body_size 25M;
location ~ /\. {
deny all;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args ;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_read_timeout 300;
fastcgi_send_timeout 300;
fastcgi_pass wordpress:9000;
}
access_log /app/log/wordpress.access.log;
error_log /app/log/wordpress.error.log;
}