Created
October 27, 2019 02:47
-
-
Save nemchik/5af129eec09b2f716aed5770fd9eb553 to your computer and use it in GitHub Desktop.
WordPress site conf for lsio letsencrypt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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