Hi,
I need some help with the authentication part and it works if I remove the authentication.
I get the login prompt but I get the 500 error message (see screenshot).
And in the error.log file (/mnt/user/appdata/apache/log/apache) I get the following error: [Mon Sep 11 11:35:46.281574 2017] [authn_file:error] [pid 85] (2)No such file or directory: [client 192.168.1.1:53553] AH01620: Could not open password file: /mnt/user/appdata/apache/login/.htpasswd
I've tried various configuration that I got from Google but it haven't resolved the issue so I hope that you can help me
This is my config:
Location: /mnt/user/appdata/apache/apache/site-confs
Files: .htacces
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /mnt/user/appdata/apache/login/.htpasswd
AuthGroupFile /dev/null
<Files Transmission>
require valid-user
</Files>
and default.conf
<VirtualHost *:80>
DocumentRoot /config/www/
<Directory "/config/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName www.example.com
SSLEngine on
SSLCertificateFile "/config/keys/cert.crt"
SSLCertificateKeyFile "/config/keys/cert.key"
DocumentRoot /config/www/
<Directory "/config/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<Location /transmission>
ProxyPass http://192.168.1.17:9091/transmission
ProxyPassReverse http://192.168.1.17:9091/transmission
AuthUserFile /mnt/user/appdata/apache/login/.htpasswd
AuthType Basic
AuthName “Transmission–Proxy”
Require user trans
</Location>
Location: /mnt/user/appdata/apache/login
File: .htpasswd
trans:XflHKt0b76PEE
I've folloed this guid: https://www.linuxserver.io/2015/11/10/overview-reverse-proxy-with-docker/
Thank you!