View Single Post

  #2 (permalink)  
Old 07-07-2003
Jimmy
 
Posts: n/a
Default Re: Accessing name-based virtual server pages on the LAN


"Dan Masi" <danmasi@earthlink.net> wrote in message
news:7ec4126e.0307070854.2473641d@posting.google.c om...
> OK, this isn't really a config question. Go easy, I'm new here!
>
> I have a couple of name-based virtual servers set up, Apache 2.0 on
> Red Hat 8.0. The Linux machine sits behind a DSL router, along with
> a WinXP machine. I've got dynamic ip set up. Everything works great
> from the internet; someone looking for www.foo.com gets sent to my
> IP address, the router forwards port 80 requests to my Linux box,
> Apache sees the name and gets the correct page.
>
> Question is, if I'm sitting at my WinXP box, how can I get www.foo.com?
> Right now, if I try to do so, I get the login page for my DSL router
> administration, since the request is coming from the LAN. What's
> the easiest way to make this work right?



There are several solutions:

1 - Edit /windows/system32/drivers/etc/hosts and add the following:
192.168.1.33 www.domain.com domain.com
Substitute for your parameters

2 - Enable proxy-server in Internet Explorer

3 - Use local IP in browser along with tilde username (If enabled in
httpd.conf), e.g. 192.168.1.33/~USERNAME

4 - Set up your own DNS-server locally

Number1 is the preferred method as both IE and your FTP-client will be
redirected correctly.

Regards,
Jimmy