Author Topic: wildcard subdomain  (Read 307 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
wildcard subdomain
« 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