Hi,
the php/8 branch of providence with nginx on Ubuntu 24 with this config will not correctly redirect after a login:
server {
server_name backend.my-url.org;
root /var/www/html/ca;
index index.php;
access_log /var/log/nginx/collectiveaccess_access.log calogformat;
error_log /var/log/nginx/collectiveaccess_error.log notice;
client_max_body_size 512M;
fastcgi_read_timeout 300;
keepalive_timeout 60;
# Basic authentication
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/.htpasswd;
location / {
try_files $uri /index.php?$query_string;
satisfy any;
allow 0.0.0.0/0;
deny all;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
location ~ /setup.php {
deny all;
}
}
Does anybody know how I can use nginx and htpasswd together for providence correctly? Thanks!
The error is
2024-07-19 8:44:41 - INFO --> [LOGF] Failed login for '<htpasswd user>' (/index.php/); IP=11.11.11.1; user agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15' (Auth)