22 lines
449 B
Nginx Configuration File
22 lines
449 B
Nginx Configuration File
server {
|
|
listen 443 ssl;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
|
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
|
|
|
|
root /var/www/wordpress;
|
|
|
|
index index.php;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_pass wordpress:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
}
|