How do I access my webserver on my stationary from my laptop?
Posted
by
Steven
on Server Fault
See other posts from Server Fault
or by Steven
Published on 2011-06-13T07:57:19Z
Indexed on
2012/03/23
23:31 UTC
Read the original article
Hit count: 232
I'm running Apache on my stationary and I would like to access a website through my laptop.
This is some of the Apache config:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerName mysite.com
DocumentRoot I:/wamp/www/mysite/
</VirtualHost>
ServerName localhost:80
<Directory />
Options FollowSymLinks
AllowOverride all
Order deny,allow
Deny from all
</Directory>
On my laptop I've added the following to the HOSTS
file:
10.0.0.3 mysite.com
But accessing the page through mysite.com is not very successfull. If I enter the IP address directly, I only get a Forbidden
message.
What do I need to do in order to get this to work?
Update
I'm runing WAMPSERVER 2.1 (Apache 2.2.17)
Apache is up and running
I can ping 10.0.0.3 from laptop
I'm not able to ping http://mysite.com from laptop
IE gives me a 403 Forbidden
-> The website declined to show this webpage
The only log that get's entries when trying to access the website from my laptop, is access.log.
access.log
10.0.0.4 - - [13/Jun/2011:10:14:04 +0200] "GET / HTTP/1.1" 403 202
apache_error.log
[Mon Jun 13 10:08:16 2011] [error] VirtualHost localhost:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
UPDATE 2
My apache config has the following entry:
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Could it be that this Allow from
is stopping other computers accessing the page?
© Server Fault or respective owner