Casa > H > How To Access The Wamp Server (Localhost) Page Of My Computer, From My Android Mobile Browser

How to access the wamp server (localhost) page of my computer, from my android mobile browser

Configure Apache

Now Apache needs to know what to do with these IP addresses, so find the httpd.conf file first, mine was here:

  1. C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf 

Find the line:

  1. Listen 80 

and change it to add your IP addresses with the port:

  1. Listen 192.168.2.100:80 
  2. Listen 192.168.2.110:80 

Further down in this file you need to configure the access to the directories that host your sites, like this:

  1.  
  2. allow from all 
  3.  
  4.  
  5.  
  6. allow from all 
  7.  

Save and close the file. Now find the httpd-vhosts.conf file, mine was here:

  1. C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf 

Here you need to add VirtualHost directives to point the IP address at your folders, like this:

  1.  
  2. DocumentRoot "C:/wamp/www/test_website_aaaaaa" 
  3.  
  4.  
  5.  
  6. DocumentRoot "C:/wamp/www/test_website_bbbbbb" 
  7.  

Save and close the file, and restart the Apache service.

De Vange

Porque tenho tanta dificuldade em delegar? :: Como passar dados de uma actividade para outra actividade do WebView no Android Studio