martedì 17 marzo 2020

Vedere in mobile il localhost da WAMP Usando il wifi

Con Wamp 3

1) Verificare che il cellulare e il computer usino la stessa rete WIFI. 
Trovare l'ip della rete wifi.

2) Settare nel file httpd-vhosts dentro wamp64/bin/apache/apache2.4.39/conf/extra

<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted (al posto di Require local)
  </Directory>
</VirtualHost>

3) Autorizzare l'apache nel firewall sotto Public network wamp64/bin/apache/apache2.4.39/httpd.exe

Nessun commento: