LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-08-2004, 06:06 PM   #1
j4b
LQ Newbie
 
Registered: Aug 2004
Location: huntsville, AL
Posts: 6

Rep: Reputation: 0
local web server behind dhcp router


I'm really new to this, but I would like to run Apache as a local web server for my little cluster of workstation running DHCP on a 4-port router (d-link). Apache (httpd.conf) wants a name/IP.

What is the trick here? Am I free to assign names behind my router (eeny, meanie, mynie, moe), or is there more to it than that?
 
Old 08-08-2004, 06:24 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
I believe your first step is to log into that dlink router and see if it supports virtual servers. Everything will be done from there.
 
Old 08-08-2004, 07:36 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,852

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Behind the router you can use anyname
 
Old 08-08-2004, 11:05 PM   #4
j4b
LQ Newbie
 
Registered: Aug 2004
Location: huntsville, AL
Posts: 6

Original Poster
Rep: Reputation: 0
OK, the d-link supports virtual servers. The help page indicates that I can get to the server (port 80?) from the WAN. I think that my DSL provider will block that, but I really want to run an internal server anyway.

How do I tell the Linux box what name to respond to on the LAN (inside the router)? (How do you put a DHCP IP number in the /etc/hosts file?)
 
Old 08-08-2004, 11:19 PM   #5
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
EDIT: nm

Your name doesn't really matter on your LAN, because your computers won't be able to resolve that name to an IP unless all of them have your IP recorded in their hosts files. Windows computers I know do not refer to their host file most of the time, just go straight to the ISP. Linux computers will, but I don't see much point in putting a name in all of your LAN's computers.

Apache doesn't really care what your name is, it just responds to whatever's on port 80 or whatever you set it up as.

So if you really wanna put a server name into Apache, I'd just put your LAN IP.

For the other LAN computers to connect to the Apache computer, just type in the IP address unless there's a big problem with doing so.

Last edited by OEP; 08-08-2004 at 11:27 PM.
 
Old 08-08-2004, 11:45 PM   #6
j4b
LQ Newbie
 
Registered: Aug 2004
Location: huntsville, AL
Posts: 6

Original Poster
Rep: Reputation: 0
I'm not a frequent user. Is it necessary for me to query the Apache server before I know what IP to point my browser to? This is what buggers me about DCHP. The computers on my LAN are a Mac (OS-9), Win-XP, and the FC2 server.

It looks like I will have to get used to logging into my router (admin passworded) to find out what IP numbers are in use today. I am really not excited about teaching my Mac user how to do this, just to see the web pages....
 
Old 08-08-2004, 11:52 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
you should be able to assign IPs statically with your router, in the DHCP section.
 
Old 08-09-2004, 12:16 AM   #8
j4b
LQ Newbie
 
Registered: Aug 2004
Location: huntsville, AL
Posts: 6

Original Poster
Rep: Reputation: 0
In the "filters" section I can associate a MAC with an IP on the LAN. (Although I can choose to "disable MAC filters" after assigning the IP address.

I hope this is what you meant.

Thanks.
 
Old 08-09-2004, 12:25 AM   #9
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
once you assign an IP to the mac address of the lan web server (192.168.0.111, for example), make the IP static. then all the computers on your network can always access the web server at that IP.

Last edited by synaptical; 08-09-2004 at 12:26 AM.
 
Old 08-09-2004, 10:03 PM   #10
j4b
LQ Newbie
 
Registered: Aug 2004
Location: huntsville, AL
Posts: 6

Original Poster
Rep: Reputation: 0
As I have admitted to being a newbie, "make the IP static" is like magic to me. Does FC2 have a wizard to help, or must I muddle through man "everything netlike" to find the obscure set of commands to do this?
 
Old 08-09-2004, 10:21 PM   #11
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
as i said, it should be a setting in your router. i have one of the most basic d-link routers, dl-604, and it has the option to use the router as a DHCP server for the lan and to set IPs statically. maybe your router doesn't allow that, but afaik, most routers do allow it. read the documentation for your router, or post the model if you can't figure it out so someone can help you do it.
 
  


Reply


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Slow web browsing behind router w/ DHCP on DSL connection johngcarlsson Linux - Newbie 20 10-18-2004 03:32 PM
Local Web Server amdawi Linux - Networking 15 09-30-2003 04:25 PM
Local DHCP Server Setup ddepuemd Linux - Newbie 1 05-16-2002 05:46 PM


All times are GMT -5. The time now is 03:09 PM.

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