Menu

Home

Ross

JavaDoc documentation:

http://apacheconfparser.sourceforge.net/doc/

Code Samples:

Search for a directive [Search For A Directive]
Search for an enclosure [Search For An Enclosure]
Search for a directive inside an enclosure [Search For A Directive Inside An Enclosure]
Grab active file list [Grab Active File List]

Jar Usage:

The distributed jar can also be used to run and parse the apache configuration. The jar usage is as follows:

~~~~~~~~
Usage: java -jar ApacheConfParser.jar [-c ConfFile] [-s ServerRoot] [-b ApacheBinary] [args...]

where args include:
-h : help (This page)
-a : View all currently included configuration files.
-d DirectiveName : Search for a directive by name.
-e EnclosureName : Search for an enclosure by name.
-ed EnclosureName DirectiveName : Search for a directive inside an enclosure.

Example searching for the "Listen" directive:
java -jar ApacheConfParser.jar -c /usr/local/apache/conf/httpd.conf -s /usr/local/apache -b /usr/local/apache/bin/apachectl -d Listen
java -jar ApacheConfParser.jar -c "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf" -s "C:\Program Files (x86)\Apache Software Foundation\Apache2.2" -b "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe" -d Listen
~~~~~~~~~~~~~~~~~~~~~~~~~~


Related

Wiki: Grab Active File List
Wiki: Search For A Directive Inside An Enclosure
Wiki: Search For A Directive
Wiki: Search For An Enclosure

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.