repaired trailing slash, plus admin auth

This commit is contained in:
Milan Toman
2024-02-21 12:27:40 +01:00
parent 8ef1c729d8
commit 7938ff2d29
2 changed files with 51 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
server {
listen 81 default_server;
port_in_redirect off;
absolute_redirect off;
root /app;
index index.php index.html index.htm;
location ~ \.php$ {
@@ -9,17 +11,7 @@ server {
}
location /admin {
auth_basic "Administrators Area";
auth_basic_user_file conf/htpasswd;
auth_basic_user_file conf.d/htpasswd.pwd;
}
}
#server {
# listen 82 default_server;
# root /app/master/www;
# index index.php index.html index.htm;
# location ~ \.php$ {
# fastcgi_pass php:9000;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# include fastcgi_params;
# }
#}