Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-02-2004, 03:14 PM   #1
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Rep: Reputation: 15
Accessing MY virtual hosts from MY Lan.


This has been doing my head for quite a while, so I need some help from ya masters...

My problem starts with my Netgear DG834 which can only be configured via port 80 (shame that such a good router has such a rigid drawback).

Anyway, my Apache server is running virtual hosts, which are working great if you access them from outside my LAN, however, when I try to access them from within the LAN, I get the router login dialog.

I'm sure that someone out there had the same problem.

I know I can set my own DNS, but I was thinking maybe there are better ways to go about this.

Thanks in advance.
Old 03-02-2004, 03:40 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just override your DNS servers on each lan machine. In the hosts file on every lan PC add:
Old 03-02-2004, 03:41 PM   #3
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
Ok, found an answer I'm happy with:

I've added to /etc/hosts:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
Accessing apache shared hosts? Seventh Linux - Software 1 03-19-2005 09:46 AM
virtual hosts... Digital_Err0r Linux - Newbie 25 03-25-2004 04:58 PM
Access apache virtual hosts from lan te_conway Linux - Networking 2 07-16-2002 10:20 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration