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

38 lines
886 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
2024-12-05 04:44:36 -05:00
ssl_certificate /etc/ssl/private/ov.chain.crt;
ssl_certificate_key /etc/ssl/private/ov.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 / {
try_files $uri $uri/ /index.php?$args;
}
2021-07-07 17:55:50 -04:00
location ~ \.php$ {
2024-12-18 02:03:13 -05:00
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; # or fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
2021-07-07 17:55:50 -04:00
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
2021-07-18 16:45:39 -04:00
location = /ads.txt {
2021-07-18 16:48:25 -04:00
root /var/www/int/1;
2021-07-18 16:45:39 -04:00
}
2021-05-01 15:13:49 -04:00
}