Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Non-SSL
- <VirtualHost x.x.x.x:80>
- ServerName *.domain.com
- VirtualDocumentRoot /home/username/public_html/subdomains/%1/
- ServerAdmin webmaster@domain.com
- UseCanonicalName Off
- CustomLog /usr/local/apache/domlogs/domain.com combined
- CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t%I .\n%{%s}t %O ."
- ## User username # Needed for Cpanel::ApacheConf
- <IfModule mod_suphp.c>
- suPHP_UserGroup username username
- </IfModule>
- <IfModule !mod_disable_suexec.c>
- <IfModule !mod_ruid2.c>
- SuexecUserGroup username username
- </IfModule>
- </IfModule>
- <IfModule mod_ruid2.c>
- RUidGid username username
- </IfModule>
- ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
- # To customize this VirtualHost use an include file at the following location
- # Include "/usr/local/apache/conf/userdata/std/2/username/domain.com/*.conf"
- </VirtualHost>
- SSL
- <VirtualHost x.x.x.x:443>
- ServerName *.domain.com
- VirtualDocumentRoot /home/username/public_html/subdomains/%1/
- ServerAdmin webmaster@domain.com
- UseCanonicalName Off
- CustomLog /usr/local/apache/domlogs/domain.com combined
- CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t%I .\n%{%s}t %O ."
- ## User username # Needed for Cpanel::ApacheConf
- <IfModule mod_suphp.c>
- suPHP_UserGroup username username
- </IfModule>
- <IfModule !mod_disable_suexec.c>
- <IfModule !mod_ruid2.c>
- SuexecUserGroup username username
- </IfModule>
- </IfModule>
- <IfModule mod_ruid2.c>
- RUidGid username username
- </IfModule>
- SSLEnable
- SSLCertificateFile /etc/ssl/certs/domain.com.crt
- SSLCertificateKeyFile /etc/ssl/private/domain.com.key
- SSLCACertificateFile /etc/ssl/certs/domain.com.cabundle
- ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
- # To customize this VirtualHost use an include file at the following location
- # Include "/usr/local/apache/conf/userdata/std/2/username/domain.com/*.conf"
- </VirtualHost>
- Ensure www loads same content as non-www
- ln -s /home/username/public_html /home/username/public_html/subdomains/www
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement