Tag Info

Hot answers tagged


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 ...


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 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


How about using a re-write rule to block the 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 ...


Use Allow/Deny instead: <Location /test/manager/> Order Deny,Allow Deny from Allow from </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 ...


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 ...


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


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