Apache Virtual host points to main domain
- by user37143
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