old projects nginx conf
This commit is contained in:
parent
614373e745
commit
1e0a2793d0
|
@ -1,16 +0,0 @@
|
||||||
<VirtualHost *:80>
|
|
||||||
ServerName old-projects.metanohi.name
|
|
||||||
ServerAlias www.old-projects.metanohi.name projects.metanohi.name www.projects.metanohi.name
|
|
||||||
ServerAdmin ngws@metanohi.name
|
|
||||||
|
|
||||||
DocumentRoot /home/niels/prog/metanohi-misc-subsites/old-projects
|
|
||||||
<Directory /home/niels/prog/metanohi-misc-subsites/old-projects/>
|
|
||||||
Options Indexes Includes FollowSymLinks MultiViews
|
|
||||||
AllowOverride All
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
LogLevel warn
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error-old-projects.metanohi.name.log
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/access-old-projects.metanohi.name.log combined
|
|
||||||
</VirtualHost>
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
server_name old-projects.metanohi.name www.old-projects.metanohi.name projects.metanohi.name www.projects.metanohi.name;
|
||||||
|
|
||||||
|
root /home/niels/prog/metanohi-misc-subsites/old-projects;
|
||||||
|
index index.html index.php;
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include snippets/fastcgi-php.conf;
|
||||||
|
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
autoindex on;
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
include /etc/nginx/snippets/letsencrypt.conf;
|
||||||
|
include /etc/nginx/basics/niels/old-projects.metanohi.name.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/old-projects.metanohi.name/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/old-projects.metanohi.name/privkey.pem;
|
||||||
|
ssl_trusted_certificate /etc/letsencrypt/live/old-projects.metanohi.name/fullchain.pem;
|
||||||
|
|
||||||
|
include /etc/nginx/snippets/ssl.conf;
|
||||||
|
include /etc/nginx/basics/niels/old-projects.metanohi.name.conf;
|
||||||
|
}
|
Loading…
Reference in New Issue