Control Web Panel

WebPanel => How to => Topic started by: MahmoudNassar on February 27, 2020, 01:46:59 AM

Title: wildcard subdomain
Post by: MahmoudNassar on February 27, 2020, 01:46:59 AM
Hello,

i want create wildcard subdomain, i get this code from google, but after edit /usr/local/apache/conf.d/vhosts.conf
i get error with apache and stop...

# vhost_start *.yourdomain.com
ServerName _wildcard_.yourdomain.com
ServerAlias *.yourdomain.com
ServerAdmin hostinpk@gmail.com
DocumentRoot “/home/yourdoma/public_html”
ErrorLog “/home/yourdoma/public_html/error.log”
ScriptAlias /cgi-bin/ /home/yourdoma/public_html/cgi-bin/
# Custom settings are loaded below this line (if any exist)
# Include “/usr/local/apache/conf/userdata/yourdoma/*.yourdomain.com/*.conf
SuexecUserGroup yourdoma yourdoma
suPHP_UserGroup yourdoma yourdoma
<Directory “/home/yourdoma/public_html”>
AllowOverride All
# vhost_end *.yourdomain.com