Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/07/2011, 13:45
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
duda: un virtualhost sobreescribe al localhost?

Creando un virtualhost para probar Symfony (PHP), me pasa que al usar el puerto 80 el virtualhost pasa a ser un sinonimo de localhost. Es así?

Si uno quiere evitar pisar el localhost (que normalmente en instalaciones WAMP muestra un listado de proyectos) tiene que crear los virtualhosts en un puerto diferente al 80?

Esto es lo que tengo:

Código:
Listen 80

# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
  ServerName jobeet
  DocumentRoot "\wamp2.1\www\jobeet\web"
  DirectoryIndex index.php
  Alias /sf C:\wamp2.1\apps\symfony/data/web/sf
  <Directory "C:\wamp2.1\apps\symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory> 		
  <Directory "\wamp2.1\www\jobeet\web">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>