I have a server with multiple IP addresses. I am installing multiple domains to run from one code base, so I am defining the same document root. Each domain with it's own IP.
When I add the following (for each domain name/IP pair) in the pre_virtualhost_global.conf section in Service Configuration » Apache Configuration » Include Editor:
The result in httpd.conf virtual hosts section of DocumentRoot comes out /pathto/defineddocroot/username/public_html
How can I force generating httpd.conf with the DocumentRoot I defined - without username ...
There is no one document that lists file names and sequence used in generating httpd.conf and some threads say that cPanel preferred method is to use the include editor.
When I add the following (for each domain name/IP pair) in the pre_virtualhost_global.conf section in Service Configuration » Apache Configuration » Include Editor:
Code:
<VirtualHost 1.2.3.4:80>
ServerName example.com
ServerAlias *.example.com
DocumentRoot /installdir/ofonecodebase
</VirtualHost>
How can I force generating httpd.conf with the DocumentRoot I defined - without username ...
There is no one document that lists file names and sequence used in generating httpd.conf and some threads say that cPanel preferred method is to use the include editor.