ServerAdmin webmaster@localhost
DocumentRoot /var/www/vpn
ServerName vpn.example.com
ErrorLog ${APACHE_LOG_DIR}/vpn-error.log
CustomLog ${APACHE_LOG_DIR}/vpn-access.log combined
DirectoryIndex index.php
Options -Indexes -FollowSymLinks
AllowOverride All
Require all granted
AddType application/x-httpd-php .php
AuthType Basic
AuthName "VPN Admin"
AuthUserFile /etc/apache2/.htpasswd-admin
Require valid-user
#Require ip 192.168.1.0/24
#Satisfy all
# Запрещаем кеширование авторизации
AuthBasicProvider file
AuthType Basic
AuthName "VPN User"
AuthUserFile /etc/apache2/.htpasswd-ccd
Require valid-user
#Require ip 192.168.1.0/24
#Satisfy all
# Запрещаем кеширование авторизации
AuthBasicProvider file