For those who stumble across this in the future. It seems like directives in the Apache configuration file httpd.conf
are effective in the mod_proxied (Lucee) requests, but those in the .htaccess
aren’t!
For example, this code block:
<Location /lucee>
Require ip 123.123.123.123
</Location>
Is not effective in .htaccess
but is effective httpd.conf
(/etc/apache2/apache2.conf
).
Moreover, with ErrorDocument
directives… like this:
ErrorDocument 403 "Get out of here, you asshole!"
They are not effective in .htaccess
or httpd.conf
configuration structures without an additional directive (in httpd.conf
):
<IfModule mod_proxy.c>
ProxyErrorOverride On
</IfModule>
This tells Apache to honour its own Error handling philosophy and will thus respect the ErrorDocument
rules. [Source]
The above applies to this config:
Lucee 5.3.7.47 (Oct 29, 2020)
Ubuntu 20 with VirtualMin
Amazon EC2 instance