Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know apachectl has the configtest option, but as far as I can tell it's only for checking the entire config chain for the system apache. I would like to have a tool that can test an individual .htaccess file for errors as part of a continuous integration toolchain. Is there any way to do that with or without apachectl?

share|improve this question… is related. – kbulgrien Jan 16 '13 at 14:55… is related. – kbulgrien Jan 16 '13 at 15:01

I came across few online tools to validate .htaccess Syntax/Directives and few basic things htaccess-validator and code syntax checker and validator.

PS: To narrow down analyses/error and speed up validation, limit the no. of Directives while validation.

share|improve this answer
Are you suggesting I write wget or curl scripts to use these web services? Under CI testing I may end up hitting them too heavily and get banned… – kojiro Jan 15 '13 at 13:39
No! I'm suggesting you to upload/paste .htaccess content in respective online tools! Btw, why'd you heat them too heavily? do you need mass validation? – Mayura Jan 15 '13 at 13:40
…but the point of the question was continuous integration. – kojiro Jan 15 '13 at 13:41
Ah, i'm not aware of such commandline tool, which could validate it like we do by apachectl & configtest. Seems, we need Open Source Community support. :D – Mayura Jan 15 '13 at 13:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.