configurations/Nginx/Server Blocks/libraryofcode.org.conf

20 lines
487 B
Plaintext
Raw Normal View History

2021-05-01 15:13:49 -04:00
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name www.libraryofcode.org;
2021-05-01 16:25:44 -04:00
2021-05-01 15:13:49 -04:00
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
2021-05-01 16:25:44 -04:00
2021-05-01 15:13:49 -04:00
root /var/www/wordpress;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}