Создал(а) 'nginx-ssl.conf'
This commit is contained in:
parent
b82f7224f1
commit
633e354c08
45
nginx-ssl.conf
Normal file
45
nginx-ssl.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user