Last active
June 30, 2018 01:28
-
-
Save gmocamilotd/e5371b0fee9332eacb59645ee74ffef8 to your computer and use it in GitHub Desktop.
ampps serverhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
el mejor modo creo que es | |
# primero | |
buscar en el archivo de conf de apache (q puede ser C:/ > MAMP > conf > apache > httpd.conf) | |
la linea que originalmente dice: | |
~~~ | |
DocumentRoot "{$path}/www" | |
~~~ | |
cambiarla para la nueva ruta | |
~~~ | |
DocumentRoot "E:\_lanoosferasync\w_pagweb" | |
~~~ | |
y lineas mas abajo | |
cambiamos la configuracion por defecto para cada directorio | |
y que quede así: | |
~~~ | |
<Directory /> | |
#Options FollowSymLinks | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order deny,allow | |
Allow from all | |
Require all granted | |
</Directory> | |
~~~ | |
mas abajo parece unas lineas para el anterior directorio (<Directory "{$path}/www">) se puede obviar/ ignorar | |
# segundo | |
asegurate que en tu nuevo directorio, no haya archivos de configuracion .httaccess o wp-config u otros | |
# tercero | |
reiniciar servidor | |
# antiguo modo ----------------------- | |
# primero | |
buscar en el archivo de conf de apache (q puede ser C:/ > MAMP > conf > apache > httpd.conf) | |
la linea | |
~~~ | |
# Virtual hosts | |
#Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf | |
~~~ | |
y asegurrse que quede sin comentarios, de esta manera | |
~~~ | |
# Virtual hosts | |
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf | |
~~~ | |
# segundo | |
abrir ese archivo que indicamos (conf/extra/httpd-vhosts.conf) con un editor de texto cualquiera | |
y que quede maso menos así: | |
~~~ | |
<VirtualHost *:80> | |
DocumentRoot "E:/_lanoosferasync/w_pagweb/" | |
ServerName localhost | |
</VirtualHost> | |
<Directory /> | |
#Options FollowSymLinks | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order deny,allow | |
Allow from all | |
Require all granted | |
</Directory> | |
~~~ | |
# tercero | |
hay mas cosas que se pueden agregar | |
aunq he visto que no son tan necsarias | |
la fuente de estos datos para los pasos extras es: | |
https://www.taniarascia.com/setting-up-virtual-hosts/ | |
---------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment