How can I configure restriction for URL generated by opencms application on Apache Tomcat?
I tried
<Location "/cs/intranet">
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX
</Location>
But folder does not exist physically, just url.
http://DOMAIN/cs/intranet
Edit.
Something like this?
<RequireAll "/cs/intranet">
Require all denied
Require ip XXX.XXX.XXX.XXX
</RequireAll>
order
anddeny
are for Apache 2.2 and earlier. Apache 2.4 and later should use therequire
keyword. See httpd.apache.org/docs/2.4/howto/access.html There is a backwards compatibility module for 2.4 but I've only gotten it to work in .htaccess. If you are making those changes in a.conf
file under 2.4, you'll need the new syntax. Which file did you try that in?Server version: Apache/2.4.7 (Ubuntu)
. I don't understand how can I useRequire
for my issue? No.htaccess
file is possible, justconf
. See my edit. Thanks.