Apache Virtual host points to main domain
Posted
by user37143
on Server Fault
See other posts from Server Fault
or by user37143
Published on 2010-03-19T13:26:58Z
Indexed on
2010/03/19
13:31 UTC
Read the original article
Hit count: 215
apache
|virtualhosts
Listen 80 ServerName www.mydomain.com:80 DocumentRoot "/www/tomcat/webapps" Options Indexes FollowSymLinks Order allow,deny Allow from all Options ExecCGI
NameVirtualHost *:80 ServerName blog.mydomain.com DocumentRoot /www/blog DirectoryIndex index.php index.html Options All AllowOverride All Allow from all
on ssl.conf I have: *Listen 443 *
Now if I access mydomain.com or blog.mydomain.com both are forwarded to /www/tomcat/webapps
any idea where I went wrong? I have source complied Apache2. Should I add a virtual for the mydomain.com too?
Thanks, Anpl
© Server Fault or respective owner