Added config for al.ert.space; ex.ert.space now points to Nextcloud.
This commit is contained in:
parent
167ff651a3
commit
ba98ffe587
|
@ -0,0 +1,44 @@
|
||||||
|
server {
|
||||||
|
|
||||||
|
server_name al.ert.space;
|
||||||
|
root /srv/www/al.ert.space/app;
|
||||||
|
index index.html /server/index.php;
|
||||||
|
|
||||||
|
auth_basic "Authentication Required";
|
||||||
|
auth_basic_user_file /etc/apache2/.htpasswd;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include snippets/fastcgi-php.conf;
|
||||||
|
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
listen [::]:443 ssl; # managed by Certbot
|
||||||
|
listen 443 ssl; # managed by Certbot
|
||||||
|
ssl_certificate /etc/letsencrypt/live/al.ert.space/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/al.ert.space/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
if ($host = al.ert.space) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name al.ert.space;
|
||||||
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
|
}
|
24
ex.ert.space
24
ex.ert.space
|
@ -1,24 +1,9 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
root /srv/docker/syncthing/sync;
|
|
||||||
index /_h5ai/public/index.php;
|
|
||||||
|
|
||||||
server_name ex.ert.space;
|
server_name ex.ert.space;
|
||||||
|
|
||||||
auth_basic "Authentication Required";
|
|
||||||
auth_basic_user_file /etc/apache2/.htpasswd;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
proxy_pass http://localhost:8080;
|
||||||
}
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
location ~ \.php$ {
|
|
||||||
include snippets/fastcgi-php.conf;
|
|
||||||
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listen [::]:443 ssl; # managed by Certbot
|
listen [::]:443 ssl; # managed by Certbot
|
||||||
|
@ -37,9 +22,8 @@ server {
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
server_name ex.ert.space;
|
server_name ex.ert.space;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue