Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Pages: 1
Bonsoir à tout. je voudrais savoir si il y a une solution à mon probleme. voila la cofiguration
dans fichier C:\wamp\bin\apache\Apache2.2.17\conf\http.conf j'ai enlevé le commentaire
Include conf\extra\httpd-vhosts.conf
dans fichier C:\wamp\bin\apache\Apache2.2.17\conf\httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/newProject/public/"
ServerName newProject.local
ServerAlias newProject.local
<Directory "C:/wamp/www/newProject/public/">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
dans fichier C:\WINDOWS\system32\drivers\etc\hosts j'ai configuré comme ci dessous
127.0.0.1 newProject.local
Alors avec l'url "http://localhost/newProject/" cela me donne l’arborescence comme dessous
Parent Directory
.buildpath
.project
.settings/
.zfproject.xml
application/
docs/
library/
public/
tests/
au lieu la page index
par contre cela marche bien avec http://localhost/newProject/index.php
Merci pour les conseils
Hors ligne
Bonjour,
C'est normal, l'url a entrer dans la barre d'adresse est plutôt http://newProject.local
Dans ton Vhost, tu as un alias qui est le même que le nom, il est donc inutile.
Hors ligne
Mille merci pour la réponse si rapide et bonne soirée
Hors ligne
Pages: 1