I'm trying to set up the following.
I have a domain (allforcheap.com).
I have A Records for and CNAMES for allforcheap.com and
http://www.allforcheap.com and an A Record for failedbreakins.allforcheap.com.
If I go to
http://www.allforcheap.com or
http://allforcheap.com it works fine. I get the apache test page.
If I go to
http://failedbreakins.allforcheap.com I also get the test page.
Problem is : I have an index.html in each one so it should NOT be showing the test page. It should be showing the different pages. I have declared that in my config but I'm not quite sure what's wrong and I know there is something missing.
Thanks in Advance.
<VirtualHost *>
#NameVirtualHost allforcheap.com:80
DocumentRoot "/home/allforcheap"
ServerAdmin "admin@allforcheap.com"
ServerName allforcheap.com
ServerAlias allforcheap.com *.allforcheap.com
ErrorLog /home/allforcheap/errorlog
CustomLog /home/allforcheap/customlog common
DirectoryIndex index.html index.htm
<Directory "/home/allforcheap">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *>
#NameVirtualHost failedbreakins.allforcheap.com:80
DocumentRoot "/home/failedbreakins"
ServerAdmin "admin@allforcheap.com"
ServerName failedbreakins.allforcheap.com
ServerAlias failedbreakins.allforcheap.com
ErrorLog /home/failedbreakins/errorlog
CustomLog /home/failedbreakins/customlog common
DirectoryIndex index.html index.htm
<Directory "/home/failedbreakins">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
- <VirtualHost *>
- #NameVirtualHost allforcheap.com:80
- DocumentRoot "/home/allforcheap"
- ServerAdmin "admin@allforcheap.com"
- ServerName allforcheap.com
- ServerAlias allforcheap.com *.allforcheap.com
- ErrorLog /home/allforcheap/errorlog
- CustomLog /home/allforcheap/customlog common
- DirectoryIndex index.html index.htm
- <Directory "/home/allforcheap">
- allow from all
- Options +Indexes
- </Directory>
- </VirtualHost>
-
-
- <VirtualHost *>
- #NameVirtualHost failedbreakins.allforcheap.com:80
- DocumentRoot "/home/failedbreakins"
- ServerAdmin "admin@allforcheap.com"
- ServerName failedbreakins.allforcheap.com
- ServerAlias failedbreakins.allforcheap.com
- ErrorLog /home/failedbreakins/errorlog
- CustomLog /home/failedbreakins/customlog common
- DirectoryIndex index.html index.htm
- <Directory "/home/failedbreakins">
- allow from all
- Options +Indexes
- </Directory>
- </VirtualHost>
-