Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wayofthepie/httpd-conf-parser
https://github.com/wayofthepie/httpd-conf-parser
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wayofthepie/httpd-conf-parser
- Owner: wayofthepie
- License: mit
- Created: 2014-05-06T22:43:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T16:09:24.000Z (over 10 years ago)
- Last Synced: 2024-11-06T03:44:37.586Z (about 2 months ago)
- Language: Haskell
- Size: 1.79 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A parser for Apache Http Server 2.2 configuration files, just for fun!
The intent is to be able to parse config files and create a visible map/graph of the configuration.
Following is what the grammar for an apache httpd.conf (and other config files) should be (this is taken from an old book on configuring apache 2.0):config ::= directive*
directive ::= section-directive | simple-directive
section-directive ::= section-open configuration section-closed
section-open ::= "<" directive-name directive-argument* ">"
section-close ::= "" directive-name ">"
simple-directive ::= directive-name directive-argument*directive-name ::= ...
(see http://httpd.apache.org/docs/2.2/mod/directives.html for a list
of possible directives and their arguments)
directive-arg ::= ...
(see http://httpd.apache.org/docs/2.2/mod/directives.html for a list
of possible directives and their arguments)
This is a work in progress.