Can't access server from LAN but WAN side works

This is a discussion on Can't access server from LAN but WAN side works within the Apache Web Server forums, part of the Web Server and Related Forums category; I've RTFM and STFW but can't find a solution. I've got several XP PCs and a Linux ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2006
Arn
 
Posts: n/a
Default Can't access server from LAN but WAN side works

I've RTFM and STFW but can't find a solution.

I've got several XP PCs and a Linux Apache server on the LAN side of an
Actiontec GT701 DSL modem/router.

When I enter the server domain name on the LAN side the PCs get the
main DSL modem/router page, while PCs on the WAN side get the correct
index.html server page.

I'm forwarding port 80 in the router to the server IP.

I think it's a common problem with a simple solution just can't figure
out what it is.

How to I get the router to forward local requests as well as external
requests to the server?

Do I need to setup a route for the server on each local PC?

Thanks for any assistance!

  #2 (permalink)  
Old 05-16-2006
Peter Chant
 
Posts: n/a
Default Re: Can't access server from LAN but WAN side works

Arn wrote:

> When I enter the server domain name on the LAN side the PCs get the
> main DSL modem/router page, while PCs on the WAN side get the correct
> index.html server page.


I've had a problem that sounds similar. I assume that your, presumably on
the lan side, server is telling the outside world its server name
ServerName in httpd.conf. That's great for the outside world.
Unfortunately it is also telling your machines on your LAN this name and it
seems (to me at least with my router) that the browsers on the LAN then go
and look for subsequent pages at the ServerName given to them, which is a
network interface on the router, not your server. My router reacts by
displaying its pages. It does not portforward to where your server is on
the lan.

My solution was to spoof the DNS, assume that from the wan side your server
looks to be at www.foo.bar. If your server, on the LAN side is at
192.168.1.10 set www.foo.bar to be at 192.168.1.10 in your hosts file on
your various LAN machines.

Pete



--
http://www.petezilla.co.uk
  #3 (permalink)  
Old 05-16-2006
Arn
 
Posts: n/a
Default Re: Can't access server from LAN but WAN side works

Thanks!

I thought it might be something like that, but wanted to check with
others that had solved the problem.

Looks to be a rather clean solution; I don't need to mess with the
router or setup weird DNS records.

I'll give it a try tomorrow.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:00 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0