Simplify natur nginx config.
This commit is contained in:
parent
1880c3f3ba
commit
57ab0b57b2
|
@ -0,0 +1,9 @@
|
|||
root /home/niels/www/metanohi-misc-subsites/natur;
|
||||
index index.html index.php;
|
||||
|
||||
location ~* \.php$ {
|
||||
fastcgi_pass unix:/run/phpfpm/main.sock;
|
||||
include /etc/nginx/fastcgi.conf;
|
||||
}
|
||||
|
||||
error_page 404 /index.php;
|
|
@ -1,11 +0,0 @@
|
|||
server_name natur.metanohi.name www.natur.metanohi.name nature.metanohi.name www.nature.metanohi.name;
|
||||
|
||||
root /home/niels/prog/metanohi-misc-subsites/natur;
|
||||
index index.html index.php;
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
error_page 404 /index.php;
|
|
@ -1,19 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
include /etc/nginx/snippets/letsencrypt.conf;
|
||||
include /etc/nginx/basics/niels/natur.metanohi.name.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/natur.metanohi.name/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/natur.metanohi.name/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/natur.metanohi.name/fullchain.pem;
|
||||
|
||||
include /etc/nginx/snippets/ssl.conf;
|
||||
include /etc/nginx/basics/niels/natur.metanohi.name.conf;
|
||||
}
|
Loading…
Reference in New Issue