Создал(а) 'nginx-ssl.conf'

This commit is contained in:
dimon 2022-04-10 05:25:12 +00:00
parent b82f7224f1
commit 633e354c08

45
nginx-ssl.conf Normal file
View File

@ -0,0 +1,45 @@
upstream php {
server unix:/var/run/php-fpm.sock;
server 127.0.0.1:9000;
}
server {
listen 443 ssl default_server;
root /opt/bitnami/wordpress;
index index.php index.html;
server_name _;
ssl_certificate /letsencrypt/fullchain.pem;
ssl_certificate_key /letsencrypt/privkey.pem;
client_max_body_size 8M;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include fastcgi.conf;
include fastcgi_params;
#fastcgi_pass php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}