GH
2015-03-24 02:10:23 UTC
Dear,
I'm puzzled that my newly added subdomain does not work. httpd.conf read like the following before my change:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /www/web/www2/public_html
ServerName www2.my-cool-domain.com
ServerAlias www2.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www2>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /www/web/www3/public_html
ServerName www3.my-cool-domain.com
ServerAlias www3.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www3>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
And both www2.my-cool-domain.com and www3.my-cool-domain.com worked ok.
Now I added the following to httpd.conf, created /www/web/www4/public_html/index.html, and ran httpd -k graceful
<VirtualHost *:80>
DocumentRoot /www/web/www4/public_html
ServerName www4.my-cool-domain.com
ServerAlias www4.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www4>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
But access to www4.my-cool-domain.com failed with a message "cannot find www4.my-cool-domain.com".
I wonder if I missed something. Can someone shed some light?
Thank you.
I'm puzzled that my newly added subdomain does not work. httpd.conf read like the following before my change:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /www/web/www2/public_html
ServerName www2.my-cool-domain.com
ServerAlias www2.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www2>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /www/web/www3/public_html
ServerName www3.my-cool-domain.com
ServerAlias www3.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www3>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
And both www2.my-cool-domain.com and www3.my-cool-domain.com worked ok.
Now I added the following to httpd.conf, created /www/web/www4/public_html/index.html, and ran httpd -k graceful
<VirtualHost *:80>
DocumentRoot /www/web/www4/public_html
ServerName www4.my-cool-domain.com
ServerAlias www4.my-cool-domain.com
</VirtualHost>
<Directory /www/web/www4>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
But access to www4.my-cool-domain.com failed with a message "cannot find www4.my-cool-domain.com".
I wonder if I missed something. Can someone shed some light?
Thank you.