Estoy tratando de configurar VitualHost en MAMP Windows pero no funciona. Se carga durante 2 o 3 segundos y luego muestra Can't access this website .
Aquí está mi configuración:
# Virtual hosts Include conf/extra/httpd-vhosts.conf NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot C:\MAMP\htdocs\website ServerName project.local ServerAlias www.project.local <Directory "C:\MAMP\htdocs\website"> Allow from All AllowOverride all Options -Indexes +FollowSymlinks </Directory> UseCanonicalName on </VirtualHost>Apache está en el puerto 80.
¿Qué pasa aquí?
Gracias !
Agregue el siguiente código en c:\Windows\System32\Drivers\etc\hosts
127.0.0.1 project.local 127.0.0.1 www.project.localreiniciar apache.