dolmen/detect-Apache-modules/master/.htaccess - Htaccess File

dolmen/detect-Apache-modules/master/.htaccess

#
# Generated by setup.php
#

<IfModule mod_php5.c>
AddHandler php5-script .php .php5
</IfModule>
<IfModule !mod_php5.c>
PHP 1
</IfModule>
<IfModule mod_mime.c>
AddType text/html .php .php5 .xhtml
AddType application/json .json
</IfModule>

# Detect Apache modules
# perl -E 'foreach(@ARGV){print"<IfModule $_.c>nRedirectPermanent /$_ http://my-host.free.fr/ok.txtn</IfModule>n"}n' core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_setenvif mod_status

<IfModule core.c>
 RedirectPermanent /apache-modules/core http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !core.c>
 RedirectPermanent /apache-modules/core http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_log_config.c>
 RedirectPermanent /apache-modules/mod_log_config http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_log_config.c>
 RedirectPermanent /apache-modules/mod_log_config http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_logio.c>
 RedirectPermanent /apache-modules/mod_logio http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_logio.c>
 RedirectPermanent /apache-modules/mod_logio http://my-host/apache-modules/404!
</IfModule>

<IfModule prefork.c>
 RedirectPermanent /apache-modules/prefork http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !prefork.c>
 RedirectPermanent /apache-modules/prefork http://my-host/apache-modules/404!
</IfModule>

<IfModule http_core.c>
 RedirectPermanent /apache-modules/http_core http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !http_core.c>
 RedirectPermanent /apache-modules/http_core http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_so.c>
 RedirectPermanent /apache-modules/mod_so http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_so.c>
 RedirectPermanent /apache-modules/mod_so http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_alias.c>
 RedirectPermanent /apache-modules/mod_alias http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_alias.c>
 RedirectPermanent /apache-modules/mod_alias http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_auth_basic.c>
 RedirectPermanent /apache-modules/mod_auth_basic http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_auth_basic.c>
 RedirectPermanent /apache-modules/mod_auth_basic http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_authn_file.c>
 RedirectPermanent /apache-modules/mod_authn_file http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_authn_file.c>
 RedirectPermanent /apache-modules/mod_authn_file http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_authz_default.c>
 RedirectPermanent /apache-modules/mod_authz_default http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_authz_default.c>
 RedirectPermanent /apache-modules/mod_authz_default http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_authz_groupfile.c>
 RedirectPermanent /apache-modules/mod_authz_groupfile http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_authz_groupfile.c>
 RedirectPermanent /apache-modules/mod_authz_groupfile http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_authz_host.c>
 RedirectPermanent /apache-modules/mod_authz_host http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_authz_host.c>
 RedirectPermanent /apache-modules/mod_authz_host http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_authz_user.c>
 RedirectPermanent /apache-modules/mod_authz_user http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_authz_user.c>
 RedirectPermanent /apache-modules/mod_authz_user http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_autoindex.c>
 RedirectPermanent /apache-modules/mod_autoindex http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_autoindex.c>
 RedirectPermanent /apache-modules/mod_autoindex http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_cgi.c>
 RedirectPermanent /apache-modules/mod_cgi http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_cgi.c>
 RedirectPermanent /apache-modules/mod_cgi http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_dir.c>
 RedirectPermanent /apache-modules/mod_dir http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_dir.c>
 RedirectPermanent /apache-modules/mod_dir http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_env.c>
 RedirectPermanent /apache-modules/mod_env http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_env.c>
 RedirectPermanent /apache-modules/mod_env http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_mime.c>
 RedirectPermanent /apache-modules/mod_mime http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_mime.c>
 RedirectPermanent /apache-modules/mod_mime http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_negotiation.c>
 RedirectPermanent /apache-modules/mod_negotiation http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_negotiation.c>
 RedirectPermanent /apache-modules/mod_negotiation http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_php5.c>
 RedirectPermanent /apache-modules/mod_php5 http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_php5.c>
 RedirectPermanent /apache-modules/mod_php5 http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_reqtimeout.c>
 RedirectPermanent /apache-modules/mod_reqtimeout http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_reqtimeout.c>
 RedirectPermanent /apache-modules/mod_reqtimeout http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_setenvif.c>
 RedirectPermanent /apache-modules/mod_setenvif http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_setenvif.c>
 RedirectPermanent /apache-modules/mod_setenvif http://my-host/apache-modules/404!
</IfModule>

<IfModule mod_status.c>
 RedirectPermanent /apache-modules/mod_status http://my-host/apache-modules/ok.txt
</IfModule>
<IfModule !mod_status.c>
 RedirectPermanent /apache-modules/mod_status http://my-host/apache-modules/404!
</IfModule>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache