Accessing name-based virtual server pages on the LAN

This is a discussion on Accessing name-based virtual server pages on the LAN within the Apache Web Server forums, part of the Web Server and Related Forums category; OK, this isn't really a config question. Go easy, I'm new here! I have a couple of name-...


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 07-07-2003
Dan Masi
 
Posts: n/a
Default Accessing name-based virtual server pages on the LAN

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?

Thanks,

-dan
  #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


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

danmasi@earthlink.net (Dan Masi) wrote in
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?
>
> Thanks,
>
> -dan
>


Easiest? Put the IP of the Red Hat machine in the hosts file of the XP
machine. See the hosts.sam file in (I think)
C:\WINNT\system32\drivers\etc\hosts

Cheers,
Mark
 


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 07:37 AM.


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