Im essayant de configurer les éléments suivants.
J'ai un nom de domaine (allforcheap.com).
J'ai une Records pour et CNAMES pour allforcheap.com et
http://www.allforcheap.com et un enregistrement A pour failedbreakins.allforcheap.com.
Si je vais à
http://www.allforcheap.com ou
http://allforcheap.com il fonctionne très bien. Je reçois la page de test apache.
Si je vais à
http://failedbreakins.allforcheap.com J'ai également la page de test.
Le problème est: J'ai un index.html dans chacun ne devrait donc pas être montrant la page de test. Il convient de montrer les différentes pages. J'ai déclaré que, dans ma config, mais Im pas sûr de ce qui est erroné et je sais qu'il manque quelque chose.
Merci à l'avance.
<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>
-