I'd like to restrict the agent web interface (index.pl) based on IP-address, so only our internal LAN can access the page, while the customers.pl page stays available to the public.
I have done this for another application that we use by adding this to httpd.conf
Code: Select all
<location /dynamic/admin>
Order Deny,Allow
Deny from all
Allow from 127
Allow from 192.168.0.0/24
</location>
This should be pretty straightforward, but I can't seem to get it to work...
I tried to use the different <Directory>, <Location> and <Files> directives in /etc/httpd/conf/httpd.conf
And also tried to add the following to the <Directory "/opt/otrs/bin/cgi-bin/"> directive in /opt/otrs/scripts/apache2-httpd.include.conf
Code: Select all
<Files "index.pl">
Order Deny,Allow
Deny from all
Allow from 127
Allow from 192.168.0.0/24
</Files>
Any help? Thanks!