Tag Info

Hot answers tagged

4

Have you tried mod-auth external, it allows you to do your custom authentication mechanism for Apache. It gives you access to environment variables such as IP, USER, PASS, etc. You can write a script in a language that you are familiar with and go fetch the authentication data from your database. The wiki has some examples. If you build a custom ...


3

You can create .htaccess with the following option, file in a directory that you do not want to show the listing. Order Deny,Allow Deny From All Allow From 192.168.1.2 steps: cd /var/www/html/ldap/manager vi .htaccess (use your favorite editor) copy/past the following : Order Deny,Allow Deny From All Allow From 192.168.1.2


2

How about using a re-write rule to block the 192.168.1.7 system from reaching the subdirectory? RewriteEngine on RewriteCond %{REMOTE_ADDR} ^192\.168\.1\.7$ [NC] RewriteCond %{REQUEST_URI} ^/ldap/manager/.* [NC] RewriteRule ^(.*)$ - [R=404,L] Edited from the original answer; this now sends back a 'forbidden' error ...


1

Use Allow/Deny instead: <Location /test/manager/> Order Deny,Allow Deny from 192.168.1.0/24 Allow from 192.168.1.4 192.168.1.5 192.168.1.6 </Location> Notice that this allows also any other IP, which I think is not what you want. If so, swap the Order and remove the Deny line: <Location /test/manager/> Order Allow,Deny Allow ...


1

service apache fullstatus is an alias for /usr/sbin/apachectl fullstatus. From the manual of apachectl: fullstatus Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text-based browser such as lynx available on your system. The URL used to access the status report can be set ...


1

Yes, you can ignore it. ServerAdmin directive has no default value, so if you don't specific a value, apache won't process it. See more: Directive Quick Reference


1

CentOS - install using yum Apache 2.4 for detailed installation process Install Apache 2.4, MySQL 5.5, PHP 5.5 on CentOS/RHEL 6/5



Only top voted, non community-wiki answers of a minimum length are eligible