42_Inception/srcs/nginx/nginx.conf

22 lines
461 B
Nginx Configuration File
Raw Permalink Normal View History

2023-10-05 09:45:59 -04:00
server {
listen 443 ssl;
2023-10-04 10:01:11 -04:00
2023-10-05 09:45:59 -04:00
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
2023-10-04 10:01:11 -04:00
2023-10-05 10:37:04 -04:00
root /var/www/wordpress;
2023-10-04 10:01:11 -04:00
2023-10-05 10:37:04 -04:00
index index.php;
2023-10-04 10:01:11 -04:00
2023-10-05 09:45:59 -04:00
location / {
2023-10-05 12:15:34 -04:00
try_files $uri $uri/ /index.php?$args;
2023-10-05 09:45:59 -04:00
}
2023-10-05 10:37:04 -04:00
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass wordpress:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
2023-10-04 10:01:11 -04:00
}