Custom script for actions which modifies apache config

rembo

New member
Joined
Dec 1, 2012
Messages
8
Hello. I want to request custom scripts for all actions, that modify apache config and/or creates .htaccess files. Originally I need it for protecting directories from DA panel on my server with nginx+php-fpm (w/o apache). But i think this will be useful. As a variant we tried to use all_pre.sh, but as it runs before the action is done, we don't have new protected dir path in protected.list, and all_post.sh doesn't hooks this action.
The original thread placed here: http://www.directadmin.com/forum/showthread.php?t=45235
 
The answers are here:

Hi, I'm using DA with nginx and w/o apache (php-fpm). So we need to manually generate nginx config on submission (to avoid using htaccess). We've found the solution in using all_pre.sh custom script, but is there any other way to realize such thing? Separate script for this action will be very useful.

http://www.directadmin.com/forum/showthread.php?t=45235&p=231197#post231197

all_post.sh doesn't hooks this action

http://www.directadmin.com/forum/showthread.php?t=45235&p=231373#post231373
 
I'm also using nginx + php-fpm and the problem is really exists. It well be great if developers would add custom script for these actions operatively.
 
Back
Top