Im tratando de establecer lo siguiente.
Tengo un dominio (allforcheap.com).
Tengo una Records y la CNAMES para allforcheap.com y
http://www.allforcheap.com y un registro A para failedbreakins.allforcheap.com.
Si voy a
http://www.allforcheap.com o
http://allforcheap.com funciona bien. Tengo la página de prueba del apache.
Si voy a
http://failedbreakins.allforcheap.com También tengo la página de prueba.
El problema es: Tengo un index.html en cada uno de ellos por lo que no debería estar mostrando la página de prueba. Hay que mostrar las diferentes páginas. He declarado que, en mi configuración, pero no soy muy seguro de cuál es incorrecto y sé que hay algo que falta.
Gracias de antemano.
<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>
-