.htaccess - Print out entire apache configuration for a particular directory -
php, postfix, , other applications have functions or flags (phpinfo()
or postconf -n
) print out current configuration information. apache has mod_info
can enabled print configuration information to specific location:
loadmodule info_module modules/mod_info.so <location /server-info> sethandler server-info order deny,allow deny allow 1.2.3.4 </location>
however apache configuration change on directory-by-directory basis, instance .htaccess
files. how might 1 print out entire apache configuration for specific directory including paths files used make configuration?
you can try using <files>
container:
loadmodule info_module modules/mod_info.so <files "server-info"> sethandler server-info order deny,allow deny allow 1.2.3.4 </files>
that make can request server-info
in existing directory. however, keep in mind of mod_info limitations:
configuration directives .htaccess files not listed (since not form part of permanent server configuration).
Comments
Post a Comment