LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2004, 05:01 PM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
Apache webserver question


Hi

I'm trying to serve my own web pages, but have run into a problem.

My setup is as follows: I've got an ADSL connection. From the phone line, the connection runs to my ADSL modem (Zyxel Prestige 600 series). This is in turn connected to a Cisco hub (Micro Hub 10/100) and I have 2 pcs and a laptop connected to the hub.

The modem has an ip address of 192.168.1.1 and the computers are 192.168.1.2-4 I want to serve the pages from 192.168.1.2, which is a Linux box running Debian Sarge. My service provider allocates me a dynamic IP address and I use no-ip.com to translate the ip address to a domain name. I've got apache running on my Linux box.

The problem is that when I type in my domain name, my dynamic IP address or 192.168.1.1 in a web browser, I get shunted to the "Web Based Configurator" of the Zyxel ADSL modem. How do I get it to go to the index.html that I have in /var/www?

Btw, the port in my conf.d file is port 80.

Any and all help is sincerely appreciated.

Cheers
Joe
 
Old 06-15-2004, 05:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Assuming that you have configured your router forwarding port 80 to 192.168.1.2 then it is probably working but you will need to access the page from outside your network. Try doing it via guardster:
http://www.guardster.com
 
Old 06-15-2004, 05:28 PM   #3
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the answer. I haven't configured my router to do any forwarding - haven't got a clue how to do this... Can you help or point me in the right direction ?

Much appreciated.
Joe
 
Old 06-16-2004, 04:15 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It will depend on what router you have. Look for a section for "Port Forwarding" or "Natting" you will need to specify that you want requests to port 80 to be forwarded to the IP of your webserver.
 
Old 06-16-2004, 04:39 PM   #5
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
It can also be under "Virtual Server" in your web based configurator. That's what it is listed as in my D-Link Airplus router.
 
Old 06-16-2004, 06:11 PM   #6
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Rep: Reputation: 15
I have a Netgear MR814 wireless router. It was listed under Port Forwarding and it was pretty straightforward. I did, however, have to create a custom connection for SSH (which is port 22 btw).

I was also required to let the router know I was using the dyndns.org service.

I don't know if any of this helps, but being a Newbie, I was excited that you were asking about something I knew a little about.

Take care, and good luck.

Geoff
 
Old 06-16-2004, 07:34 PM   #7
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Quote:
Originally posted by gbrewste


I don't know if any of this helps, but being a Newbie, I was excited that you were asking about something I knew a little about.

Geoff
Amen to that, brother.
 
  


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
Question about php 5 and apache webserver Hockeyfan SUSE / openSUSE 1 12-17-2005 07:51 AM
Question for multi-user webserver (Apache) on Fedora wycolorado Linux - Newbie 3 09-26-2004 01:20 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
Dumb Newbie Question: Apache Webserver stoney79 Linux - Newbie 4 12-23-2003 11:40 AM
Yet Another Apache webserver question (please bear with me) shassouneh Linux - Networking 6 06-01-2002 05:33 PM


All times are GMT -5. The time now is 04:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration