Commit 00d86df6 authored by contabo-server's avatar contabo-server
Browse files

buggy nginx config

parent 1450993c
......@@ -21,3 +21,4 @@ errlog.txt
# montoring dashboard
flask_monitoringdashboard*
.htpasswd
......@@ -12,8 +12,8 @@ server {
ssl_certificate /etc/letsencrypt/live/chief.zone/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/chief.zone/privkey.pem; # managed by Certbot
access_log /var/log/nginx/chiefsend/acc.log;
error_log /var/log/nginx/cheifsend/err.log
# access_log /var/log/nginx/chiefsend/acc.log;
# error_log /var/log/nginx/cheifsend/err.log
if ($http_host !~ "^send.chief.zone"){
rewrite ^(.*)$ $scheme://send.chief.zone/$1 redirect;
......@@ -45,7 +45,7 @@ server {
location /admin {
auth_basic "Administrator Login";
auth_basic_user_file /etc/nginx/.htpasswd;
auth_basic_user_file /home/chief/chiefsend/.htpasswd;
include proxy_params;
proxy_pass http://localhost:5000/admin;
......@@ -76,11 +76,5 @@ server {
expires 30d;
}
# regex
#location ~* ^/(js|css|icons|img)/ {
#alias /home/chief/chiefsend/app/;
#expires 1y;
#}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment