Skip to content

Instantly share code, notes, and snippets.

@nemchik
Created October 27, 2019 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemchik/5af129eec09b2f716aed5770fd9eb553 to your computer and use it in GitHub Desktop.
Save nemchik/5af129eec09b2f716aed5770fd9eb553 to your computer and use it in GitHub Desktop.
WordPress site conf for lsio letsencrypt
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /config/www/wordpress;
index index.html index.htm index.php;
server_name wordpress.*;
# enable subfolder method reverse proxy confs
include /config/nginx/proxy-confs/*.subfolder.conf;
# all ssl related config moved to ssl.conf
include /config/nginx/ssl.conf;
# enable for ldap auth
#include /config/nginx/ldap.conf;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.html /index.php?$args =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment