C:\Windows\System32\notepad.exe
Una vez abierto el Notepad abrir:
C:\WINDOWS\system32\drivers\etc\hosts
y añadir:
127.0.0.1 minuevaweb.dev
Abrir:
D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
y descomentar la línea:
Include conf/extra/httpd-vhosts.conf
y También descomentar:
LoadModule rewrite_module modules/mod_rewrite.so
Abrir:
D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
Y añadir:
<Directory d:/wamp/www>
AllowOverride All
Require all granted
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "d:/wamp/www"
ServerName localhost
</VirtualHost>
<Directory d:/wamp/www/minuevaweb.com>
AllowOverride All
Require all granted
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "d:/wamp/www/minuevaweb.com"
ServerName minuevaweb.dev
</VirtualHost>
En Xampp:
C:\xampp\apache\conf\extra\httpd-vhosts.conf
Más información en:
https://styde.net/creando-virtual-hosts-con-apache-en-windows-para-wamp-o-xampp/
No hay comentarios:
Publicar un comentario