Hello, as I am developing a new parser for parsing apache configuration files, I thought I would post here to find out if there's any other project/user/contributor that could be interested in it.
Currently the parser handles most common cases, but it's not in anyway complete nor shuold be considered stable. It's 100% Python, and handles the parsed files using an own internal xml rappresentation (we rely on python-lxml for that). I posted a little tutorial at http://www.stefanoforenza.com/a-new-parser-for-rapache/ , though i am not sure it would give a clear idea about what the api really looks like. It's meant to be used this way: >>> p = Parser() >>> p.load( 'tests/datafiles/errordocuments.conf') >>> for v in p.virtualhost: v.errordocument.search([404]).value = '404 >>> /error-'+v.servername.value+'.html' >>> for v in p.virtualhost: print v.errordocument.search([404]).value ... 404 /error-example.org.html 404 /error-example.net.html If someone is interested just let me know. Cheers, Stefano -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
