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.
apachectl -t
it is used for virtualhosts only it would not serve to your needs. My best guess would be that you gona need to make your own validator ... perhaps asking in the stackoverflow.com will get you a lead of how to go thru about this. At any rate this is more programming related from what i see.