Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
    
serverfault.com/questions/125081/… is related. –  kbulgrien Jan 16 '13 at 14:55
    
stackoverflow.com/questions/2407865/… is related. –  kbulgrien Jan 16 '13 at 15:01

1 Answer 1

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? –  Mayur Pipaliya 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 –  Mayur Pipaliya Jan 15 '13 at 13:44

Your Answer

 
discard

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.