Easy Apache 3 & PHP

Adding Custom Directives to httpd.conf

Many users are initially daunted by the new system used for generating and managing Apache's core configuration file, httpd.conf. As mentioned in The Apache Configuration System direct edits of httpd.conf will no longer be preserved unless they are properly integrated with the new Apache configuration system. This section lists the various methods available for customizing the httpd.conf file. For most users, the apache config distiller tool or the use of include files are recommended.

httpd.conf changes not contained in a <VirtualHost>

NOTE: Virtually any Apache directives can be added using this method. Please make certain that any changes you make in this fashion will remain valid regardless of other configuration changes made in the WebHost Manager. For instance, if you are adding directives that pertain to mod_suphp, enclose them in an appropriate <IfModule> block.

<IfModule mod_suphp.c>
suPHP_ConfigPath /usr/local/lib/
</IfModule>

httpd.conf changes contained in a <VirtualHost>

NOTE: Due to a bug in Apache it is not possible to have any * characters in the middle of an include path. To work around this problem with wildcard subdomains, the leading * should be changed to wildcard_safe. For example, include files for *.mydomain.com would be placed in /usr/local/apache/conf/userdata/std/2/username/wildcard_safe.mydomain.com/