diff --git a/nohix/nginx/base.conf b/nohix/nginx/base.conf deleted file mode 100644 index 3d1d734..0000000 --- a/nohix/nginx/base.conf +++ /dev/null @@ -1,13 +0,0 @@ -server_name nohix.metanohi.name www.nohix.metanohi.name; - -root /home/niels/prog/metanohi-misc-subsites/nohix; -index index.html index.php; - -location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php7.0-fpm.sock; -} - -location / { - autoindex on; -} diff --git a/nohix/nginx/site.conf b/nohix/nginx/site.conf deleted file mode 100644 index 379b03a..0000000 --- a/nohix/nginx/site.conf +++ /dev/null @@ -1,19 +0,0 @@ -server { - listen 80; - listen [::]:80; - - include /etc/nginx/snippets/letsencrypt.conf; - include /etc/nginx/basics/niels/nohix.metanohi.name.conf; -} - -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - - ssl_certificate /etc/letsencrypt/live/nohix.metanohi.name/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/nohix.metanohi.name/privkey.pem; - ssl_trusted_certificate /etc/letsencrypt/live/nohix.metanohi.name/fullchain.pem; - - include /etc/nginx/snippets/ssl.conf; - include /etc/nginx/basics/niels/nohix.metanohi.name.conf; -} diff --git a/nohix/nohix.nginx.conf b/nohix/nohix.nginx.conf new file mode 100644 index 0000000..abf4c6f --- /dev/null +++ b/nohix/nohix.nginx.conf @@ -0,0 +1,11 @@ +root /home/niels/www/metanohi-misc-subsites/nohix; +index index.html index.php; + +location ~* \.php$ { + fastcgi_pass unix:/run/phpfpm/main.sock; + include /etc/nginx/fastcgi.conf; +} + +location / { + autoindex on; +}