Configuration des virtualHost - Apprendre-PHP.com

Rechercher
Boutique en ligne, solution e-commerce, script PHP et PERL : RAYNETTE

configuration des virtualHost

Par nomager -  2 reponses -  Le 29/08/2010 -  Flux RSS - 

Bonjout tout le monde, j'ai demarré avec symfony sous windows et en cpnfigurant mes virtualHost comme ceci:

NameVirtualHost 127.0.0.1:8080

Listen 127.0.0.1:8080

<VirtualHost *:8080>     DocumentRoot "C:/wamp/www/jobeet/web"     ServerName    jobeet     DirectoryIndex index.php         <Directory "C:/wamp/www/jobeet/web">             AllowOverride All             Allow from All         </Directory>      Alias /sf "C:/wamp/www/jobeet/web/sf"         <Directory "C:/wamp/www/jobeet/web/sf">             AllowOverride All             Allow from All         </Directory> </VirtualHost>

en tapant http://localhost/jobeet

rein ne s'affiche à l'écran.Merci pour toute votre aide.

 

Réponses apportées à cette discussion

Par Cyrano -  Le 30/08/2010 - 

Salut,

c'est normal : le port par défaut est le port 80, or ton virtuelhost indique le port 8080. Il faudrait donc que tu pointes vers http://localhost/jobeet:8080 pour avoir un résultat.

 

 
Par Emacs -  Le 05/09/2010 - 

Salut,

Ton vhost doit plutôt ressembler à cela.

  1. <VirtualHost *:80>
  2. DocumentRoot "C:/wamp/www/jobeet/web"
  3. ServerName www.jobeet.local
  4. DirectoryIndex index.php
  5.  
  6. <Directory "C:/wamp/www/jobeet/web">
  7. AllowOverride All
  8. Allow from All
  9. </Directory>
  10.  
  11. Alias /sf "C:/wamp/www/jobeet/lib/vendor/symfony/data/web/sf"
  12. <Directory "C:/wamp/www/jobeet/lib/vendor/symfony/data/web/sf">
  13. AllowOverride All
  14. Allow from All
  15. </Directory>
  16. </VirtualHost>

Ensuite, ajoute cette ligne à ton fichier C:\Windows\System32\drivers\etc\hosts

  1. 127.0.0.1 www.jobeet.local

Et enfin, redémarre ton serveur Apache et consulte les urls http://www.jobeet.local et http://www.jobeet.local/frontend_dev.php dans ton navigateur. 

Hugo. 

 

Ajouter une réponse à la discussion

Seuls les membres loggués sont autorisés à poster dans les forums !