33 lines
819 B
Plaintext
Executable File
33 lines
819 B
Plaintext
Executable File
server {
|
|
listen 80;
|
|
listen 443 ssl;
|
|
http2 on;
|
|
|
|
server_name <<HOSTNAME>>;
|
|
set $base <<HOSTNAME>>;
|
|
root $base/public_html;
|
|
|
|
access_log /var/log/nginx/<<HOSTNAME>>-access.log;
|
|
error_log /var/log/nginx/<<HOSTNAME>>-error.log warn;
|
|
|
|
ssl_certificate <<NM_CERTPATH>>/live/<<HOSTNAME>>/fullchain.pem;
|
|
ssl_certificate_key <<NM_CERTPATH>>/live/<<HOSTNAME>>/privkey.pem;
|
|
include conf.d/include/ssl-ciphers.conf;
|
|
|
|
index index.php index.html index.htm;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
include conf.d/include/force-ssl.conf;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
|
include conf.d/include/php_fastcgi.conf;
|
|
}
|
|
|
|
include conf.d/include/general.conf;
|
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
|
}
|