Anyone can give me httpd.conf in a cpanel dedicated?
I am trying to learn how cpanel handle dynamic virtual hosts.From Apache help file, there are only two ways to do it: mod_vhost_alias and mod_rewrite for this purpose. However, both are best used in a single user system /home/www/
Also setting up userid and usergroup are difficult in both cases.
I want to learn if Cpanel does apacheclt graceful every time a new domain is added, and how it inserts userid and groupid to each <virtualhost >, because neither mod_vhost_alias nor mod_rewirte can add those values.
In 1and1's shared enviroment, it uses one httpd.conf in each user's home directory.
RewriteEngine on
RewriteMap host2filename prg:/usr/local/apache/share/cgi-bin/rewritepfad.pl
RewriteLock /var/lock/rewrite.lock
It seems it uses a perl program to write dynamic vhost names.
I wonder if cpanel uses the same mothod.
Can anyone give me the defualt httpd.conf in cpanel?