New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSCache and CWP CageFS at no extra cost with all CWPpro licences. The LSCache plugin is integrated into our WordPress and other script installers, and CWP CageFS gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Where is %domain_aliases% being defined?

Started by knn, April 22, 2019, 04:31:58 PM

Previous topic - Next topic

knn

I use CWP 6.

The file /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/default.tpl
starts with
<VirtualHost %ip%:%apache_port%>
ServerName %domain_idn%
%domain_aliases%
ServerAdmin webmaster@%domain%
DocumentRoot %docroot%


Which is then converted to something like
<VirtualHost 111.222.333.444:8181>
ServerName EXAMPLE.COM
ServerAlias www.EXAMPLE.COM
ServerAdmin webmaster@EXAMPLE.COM
DocumentRoot /home/xxxxxx/public_html/EXAMPLE.COM


My question is about the line %domain_aliases% which defines the "www". Where can I adjust this or add more subdomains than "www"? And by adding subdomains I mean simple aliases just like www.

Thank you.