simple script call after DA rewrites httpd.conf

midan

New member
Joined
Apr 10, 2005
Messages
2
Location
Montreal, Quebec, Canada
Hello,

Could any body shed light on how I can call a simple script that will execute after DA has re-written a user's httpd.conf file, BUT, before DA restarts httpd?

I would like to achieve the following:

whenever certain accounts make changes to their apache settings (/usr/local/directadmin/data/users/<user>/httpd.conf, I want to replace (using sed) "private_html" by "public_html".

This is because I need to support Frontpage Extensions for a few accounts and FPSE doesn't work with 2 different directories (one for http and the other for https).

Thank you,
 
Back
Top