Re: read apache settings
- From: "Álvaro G. Vicario" <alvaroNOSPAMTHANKS@xxxxxxxxxxxxxx>
- Date: Fri, 28 Nov 2008 13:17:29 +0100
massimo.sala escribió:
is it possible from a php script to read the apache settings ?
for example
DirectoryIndex
ServerAdmin
As far as I know there's not direct way.
Depending in the security settings, you might be able to parse the output of several sources:
- The *.conf files themselves (you'd need to follow the included files chain)
- The /server-info page generated by mod_info
- The output of the "httpd -S" command (which is fairly incomplete)
The second possibility looks quite promising:
http://localhost/server-info?config
But, of course, this Apache module is not something you're allowed to enable in a shared hosting.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
.
- References:
- read apache settings
- From: massimo.sala
- read apache settings
- Prev by Date: Documentation tool
- Next by Date: Re: Documentation tool
- Previous by thread: Re: read apache settings
- Next by thread: Re: read apache settings
- Index(es):