I have a problem with DirectAdmin and firewall. The following statement doesn't work:
SetEnvIf Remote_Addr "x.x.x.x" TRUST=yes
Apache doesn't respond to above instruction.
The instruction is part of the following whole:
Alias /.well-known "/var/www/html/.well-known"
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/(.*)
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
ProxyPass /.well-known !
SetEnvIf Remote_Addr "111.222.33.123" TRUST=yes
SetEnvIf Remote_Addr "111.222.33.223" TRUST=yes
SetEnvIf Remote_Addr "111.222.33.114" TRUST=yes
SetEnvIf Remote_Addr "111.222.33.223" TRUST=yes
SetEnvIf Remote_Addr "111.222.33.115" TRUST=yes
SetEnvIf Remote_Addr "111.222.33.234" TRUST=yes
SetEnvIf Remote_Addr "127.0.0.1" TRUST=yes
ProxyPass "/" "http://localhost:3001/"
ProxyPassReverse "/" "http://localhost:3001/"
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
Apache doesn't respond to SetEnvIf Remote_Addr "x.x.x.x" TRUST=yes
.
Where is the problem?