I'm working on a VPS and know the edits necessary to change the wildcard host to have a different document (other than /usr/local/apache/conf ), change the user, etc.
That's fine as long as I don't make changes on the server that affect the web configuration with cpanel.
I've tried several times to get distiller to store those changes to the cpanel datastore/templates with no luck. I've also tried editing the config files in /var/cpanel/userdata/user/domain.tld.
I have not found a way to prevent /scripts/rebuildhttpdconf from adding the wildcard host or successfully configure the vhost source files so that the wildcard requests go to different web account (ex. serveralias: *):
Is there a way to eliminate the default wildcard host or modify it in the cpanel source data?
That's fine as long as I don't make changes on the server that affect the web configuration with cpanel.
I've tried several times to get distiller to store those changes to the cpanel datastore/templates with no luck. I've also tried editing the config files in /var/cpanel/userdata/user/domain.tld.
I have not found a way to prevent /scripts/rebuildhttpdconf from adding the wildcard host or successfully configure the vhost source files so that the wildcard requests go to different web account (ex. serveralias: *):
Code:
NameVirtualHost *:80
NameVirtualHost 12.34.56.78:80
NameVirtualHost *
# Default vhost for unbound IPs
<VirtualHost *>
ServerName server.domain.com
DocumentRoot /usr/local/apache/htdocs
ServerAdmin [email protected]
</VirtualHost>