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
|
||||
|
||||
|
||||
}
|
22
ex.ert.space
22
ex.ert.space
|
@ -1,24 +1,9 @@
|
|||
server {
|
||||
|
||||
root /srv/docker/syncthing/sync;
|
||||
index /_h5ai/public/index.php;
|
||||
|
||||
server_name ex.ert.space;
|
||||
|
||||
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;
|
||||
proxy_pass http://localhost:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
listen [::]:443 ssl; # managed by Certbot
|
||||
|
@ -37,7 +22,6 @@ server {
|
|||
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name ex.ert.space;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
|
Loading…
Reference in New Issue