apache - basic auth - proxy
<VirtualHost *:80>
ServerAdmin info@xxxxxx
ServerName xxx.xxx.com
DocumentRoot /var/www/html/xxx.xxxx.com
ServerAlias xxxx.xxx.com
DocumentRoot /var/www/html/xxx.xxxx.com
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://xx.x.xxx.xxx:xxxx/
ProxyPassReverse / http://xx.x.xxx.xxx:xxxx/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
AuthType Basic
AuthName "Attention"
AuthBasicProvider file
AuthUserFile "/var/www/.htpasswd"
Require valid-user
</Location>
ErrorLog /var/log/apache2/xxxx.xxxxxx.com-error.log
LogLevel error
CustomLog /var/log/apache2/xxxx.xxxxx.com-access.log combined
</VirtualHost>
Last updated