How can I perform a syntax check on an .htaccess file in a shared hosting environment?

Posted by Danny on Server Fault See other posts from Server Fault or by Danny
Published on 2010-03-22T20:15:13Z Indexed on 2010/03/22 20:21 UTC
Read the original article Hit count: 320

Filed under:
|
|
|

I have a build script (Perl) that modifies the .htaccess file when I deploy my applications. As a double-check I'd like to be able to perform some sort of syntax checking on the created .htaccess file.

I am familiar with the idea of using apachectl -t however, I am in a shared hosting environment and because of file access restrictions I cannot read certain configuration files specified by the sysadmins. Apachectl simply will not work in this regard.

Ideas or suggestions welcome.

© Server Fault or respective owner

Related posts about apache

Related posts about .htaccess