LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2004, 04:34 AM   #1
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Rep: Reputation: 30
Apache running under DHCP system and no DNS?


Hi folks

Here is the setup

1. linksys router -- set for DHCP yet retains same ip for long period of time from ISP

2. Apache 2.0 running under Fedora Core 1

3. No DNS setup (may not need it)

Question:
Can I run a website and access it using whatever DHCP ip the router is set for (obviousely cant use names cause I have no DNS) ??? or is it not possible?

Note:
I have 3 computers under that router

1. Windows 2000 ..................... (static illegal ip -- 192.168.1.100)
2. Windows 2000 Advanced server (static illegal ip -- 192.168.1.101)
3. Fedora Core 1 ...................... (static illegal ip -- 192.168.1.102)

Thanks guys,
 
Old 10-01-2004, 07:57 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
yes you can...

and those are not static IPs, unless you have modified your linksys router, and manually set those IP addresses, those are being dynamically assigned by your router. Linksys (by default) starts assigning IPs at 100. therefore you should set your satic IPs below that.

DNS:
I've posted this before. If you want to work around DNS use your system's hosts file. in windows I commonly see it in %windows%\system32\drivers\etc\hosts

If you work around DNS you can access your server by name, otherwise you'll have to use IP
 
Old 10-01-2004, 09:17 PM   #3
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
i mean is it possible to access the web page from outside. I dont think you can access it with DNS since its not registered anywhere. So is it possible to access it through ip? I guess port has to be 80? or 8080? or 8888?
 
Old 10-01-2004, 10:21 PM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
i've posted this before....

you need to pass port 80 (assuming you haven't changed that in your apache conf file) to your linux box from your linksys router... then you can access it externally using your linksys external IP...

assuming that your linksys router is under a cable/dsl modem, you also need to pass your Internet IP from your modem to your linksys router, then your linux box can be gotten from anywhere using your Internet IP
 
Old 10-01-2004, 10:28 PM   #5
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
thanks dude ill try it out.
 
Old 10-01-2004, 11:16 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
If your ISP blocks port 80, then you have to pass another port through the router and setup Apache for that port. You may also want to check out http://www.dyndns.org
 
Old 10-08-2004, 12:24 AM   #7
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
Hi guys

I opened up port 80 on linksys router and forwarded it into my FC1 linux box the ip of linux box is (192.168.1.5). This is setup in linksys router now.

I started Apache2.0 but it gave me this message which means i have no dns. The message is as follows:

"httpd: Could not determine the server's fully qualified domain name, using 192.168.1.5 for ServerName"

I replaced a default webpage with a custom page just for testing purposes.

When I enter my valid internet address into web browser i get when Im inside the network behind the router I see the page fine. And that works with local ip address and internet ip address.
When I enter internet ip address from outside of my network I get page not found. So something is wrong. Any help/advice would be appreciated - Thanks
 
Old 10-08-2004, 12:32 AM   #8
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
sorry for mistake in last message the error says "The page cannot be displayed" once again this is not a "page not found" which is usually error 404 instead this is something else. Meaning it cant even reach the server something
 
Old 10-09-2004, 05:25 PM   #9
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
Ok i got it working. I opened up port 8000 on linksys router, and binded httpd port to 8000. To bind it from 80 to 8000 I had to edit httpd.conf file and set

#Listen 80
Listen 8000

The configuration file is inside /etc/httpd/conf directory.

You can check if httpd is binded to the port by issuing this command

netstat -lpn | grep httpd

It will give you SSL and httpd binded ports. If you see httpd binded to somthing like 0.0.0.0:80 then you did something wrong. If you see it binded to 0.0.0.0:8000 then you good to go.

Some ISP's block port 80 so thats why you need to bind it to port 8000

Hope this was helpfull info
CHeers!!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Virtual Host problem - DNS or DHCP issue? costrevs Linux - Software 16 03-23-2005 07:50 AM
Running DHCP at system startup on Slack 9.1 rcsuk Slackware 4 04-11-2004 09:13 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM
Dns / Dhcp TheRealDeal Linux - Networking 9 09-19-2003 04:57 AM
dhcp and dns tangle Linux - Networking 7 09-26-2002 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration