Custom Apache config

robbedoes

New member
Joined
Aug 9, 2007
Messages
1
For some sites I want to enable mod_php and for some sites I want to enable mod_python, disabling mod_php. This because of a mysql/mod_php/mod_python problem. This has to be done in the apache config file (add module/load module).

#1 Can I manage this in direct admin without running multple apache instances?

#2 If not, can I tell DA to run multiple apache instances?
 
#1 Can I manage this in direct admin without running multple apache instances?
Possibly, you'd have to remove mod_php from the original httpd.conf configuration, and then add the one you want to the Custom HTTPD Configurations screen from the DirectAdmin admin control panel. If you don't want to do it manually, you can probably create a shellscript to run just after the site is created, which would make the change to the site-specific httpd.conf file (and also to the file DA uses to keep track of changes).
#2 If not, can I tell DA to run multiple apache instances?
Yes, but you'd then be responsible for all the setups; you could also do that with a post creation shell script; you'd have to remove the references to the domain from the httpd configuration DA maintains, and add it to the one you maintain. And of course you'd have to manage which IP#s each httpd configuration would listen on, and also have different IP#s for each type of site.

My feeling is that this is complex either way, but less complex using your #1 method.

Jeff
 
Back
Top