Tema: Nuevo en ZF
Ver Mensaje Individual
  #26 (permalink)  
Antiguo 20/05/2011, 21:55
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 14 años, 10 meses
Puntos: 1517
Respuesta: Nuevo en ZF

El mio lo tengo así y me funciona
Código Apache:
Ver original
  1. NameVirtualHost *:80
  2.  
  3. <VirtualHost 127.0.0.1>
  4.     DocumentRoot "C:/xampp/htdocs"
  5.     ServerName localhost
  6.     ServerAlias localhost
  7. </VirtualHost>
  8.  
  9. NameVirtualHost foo
  10.  
  11. <VirtualHost 127.0.0.1:80>
  12.     DocumentRoot "C:/foo/public"
  13.     ServerName foo
  14.     ServerAlias foo
  15.     <Directory "C:/foo/public">
  16.         Options Indexes FollowSymLinks
  17.         AllowOverride All
  18.         Order allow,deny
  19.         Allow from all
  20.     </Directory>
  21. </VirtualHost>
  22.  
  23. NameVirtualHost bar
  24.  
  25. <VirtualHost 127.0.0.1:80>
  26.     DocumentRoot "C:/bar/public"
  27.     ServerName bar
  28.     ServerAlias bar
  29.     <Directory "C:/bar/public">
  30.         Options Indexes FollowSymLinks
  31.         AllowOverride All
  32.         Order allow,deny
  33.         Allow from all
  34.     </Directory>
  35. </VirtualHost>
  36.  
  37. NameVirtualHost test
  38.  
  39. <VirtualHost 127.0.0.1:80>
  40.     DocumentRoot "C:/test/public"
  41.     ServerName test
  42.     ServerAlias test
  43.     <Directory "C:/test/public">
  44.         Options Indexes FollowSymLinks
  45.         AllowOverride All
  46.         Order allow,deny
  47.         Allow from all
  48.     </Directory>
  49. </VirtualHost>

En el archivo C:\WINDOWS\System32\drivers\etc\hosts
Código hosts:
Ver original
  1. 127.0.0.1       localhost
  2. 127.0.0.1       foo
  3. 127.0.0.1       bar
  4. 127.0.0.1       test
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos