Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/12/2010, 10:42
diego1311
 
Fecha de Ingreso: diciembre-2008
Ubicación: Lima - Perú
Mensajes: 187
Antigüedad: 15 años, 5 meses
Puntos: 3
Respuesta: Problemas con servidor virtual en Apache

Muchas gracias me sirvio tu ayuda. funcionó asi

En el httpd-vhosts.conf

Código HTML:
Ver original
  1. <VirtualHost *:80>
  2.      ServerName localhost
  3.      ServerAdmin [email protected]
  4.      DocumentRoot "C:/AppServ/www"
  5.      SetEnv APPLICATION_ENV "development"
  6.      <Directory "C:/AppServ/www">
  7.          DirectoryIndex index.php      
  8.          AllowOverride All        
  9.          Order allow,deny        
  10.          Allow from all
  11.      </Directory>
  12. </VirtualHost>
  13.  
  14. <VirtualHost *:80>
  15.      ServerName prueba
  16.      DocumentRoot "C:/AppServ/www/prueba"
  17.      SetEnv APPLICATION_ENV "development"
  18.      <Directory "C:/AppServ/www/prueba">
  19.          DirectoryIndex index.php      
  20.          AllowOverride All        
  21.          Order allow,deny        
  22.          Allow from all
  23.      </Directory>
  24. </VirtualHost>


y en el hosts

Código HTML:
Ver original
  1. 127.0.0.1                 localhost
  2. 127.0.0.2       prueba

Gracias, saludos