Project

General

Profile

Bug #2015

Updated by cpg over 5 years ago

just tested with both proxypass and manually installed webapp, proxypass seems to bypass access control.
htpasswd isn't being used at all.

example config:

<pre>
<VirtualHost *:80>

ServerName couchpotato
ServerAlias couchpotato.domain.com



ProxyPass / http://localhost:5050/
ProxyPassReverse / http://localhost:5050/

DocumentRoot /var/hda/web-apps/couchpotato/html

<Directory "/var/hda/web-apps/couchpotato/html">
Options Indexes FollowSymLinks MultiViews
<If "-s '/var/hda/web-apps/couchpotato/htpasswd'">
AuthType Basic
AuthName "User Login Required for This Area"
AuthUserFile /var/hda/web-apps/couchpotato/htpasswd
Require valid-user
</If>
<Else>
AllowOverride AuthConfig
Require all granted
</Else>
</Directory>

ErrorLog /var/hda/web-apps/couchpotato/logs/error_log
CustomLog /var/hda/web-apps/couchpotato/logs/access_log combined env=!dontlog

</VirtualHost>
</pre>
https://paste.fedoraproject.org/347676/

Back