Re: any good way to get the apache DocumentRoot value?
Hello "Luc MAIGNAN" <firstname.lastname@example.org>,
so I got a line
from apache -v in my Debian woody.
Does it mean I have to parse /etc/apache/httpd.conf myself?
On Sun, 3 Mar 2002 16:44:32 +0100
"Luc MAIGNAN" <email@example.com> wrote:
> You only have to execute httpd -V (be careful 'v' in lowercase only prints
> Apache version). You will have all options of the server. You only have to
> parse '-D SERVER_CONFIG_FILE' which gives you relative path to the config
> file (relative path from main Apache path which is contained in -D
> Hope this helps
> -----Message d'origine-----
> De : Patrick Hsieh [mailto:firstname.lastname@example.org]
> Envoye : dimanche 3 mars 2002 16:25
> A : email@example.com
> Objet : any good way to get the apache DocumentRoot value?
> Hello list,
> This may be kind of off-topic here, but I wan to know is there any good
> way to know the localhost apache DocumentRoot path?
> My situation is, I have to distribute my cgi script(could be python or
> perl)to some apache servers, having no idea where the DocumentRoot path
> is, I have to parse a config file at $DocumentRoot/setup/config.ini
> Is there any way for the script to know exactly where the correct
> DocumentRoot is? It could have no idea about where httpd.conf is, either.
> Any idea is highly welcome.
> Patrick Hsieh <firstname.lastname@example.org>
> To UNSUBSCRIBE, email to email@example.com
> with a subject of "unsubscribe". Trouble? Contact
Patrick Hsieh <firstname.lastname@example.org>