Share local network to another computers

Share local network to another computers

10 Aug, 2014
adm
No Comments

apache

1. go to  httpd.conf

2.   check  ” Allow from 127.0.0.1 ”
something like this:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Change it with:

AllowOverride All
Order allow,deny
Allow from all
3.  goto
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
and un-comment vhosts file path

# Virtual hosts
Include conf/extra/httpd-vhosts.conf
4. open vhost from  conf\extra\httpd-vhosts.conf
and write down

[code]
ServerAdmin your@email.com
DocumentRoot "D:/wamp/www/"
ServerName server
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common

ServerAdmin your@email.com
DocumentRoot "D:/wamp/www/example_virtual_host"
ServerName example_virtual_host
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
[/code]

5. Now open C:\Windows\System32\drivers\etc to add virtual host in host file:
add
[code]
127.0.0.1 localhost
192.168.1.100 server
192.168.1.100 example_virtual_host
[/code]

6. Right Click on My Computer and change Computer name to “server”

Restart services

and Access local server using http://server/

leave A Comment