LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-10-2007, 08:55 AM   #1
isewizz
LQ Newbie
 
Registered: Sep 2007
Location: South Africa
Distribution: Linux Suse 10.3
Posts: 8

Rep: Reputation: 0
Web Hosting problems


Hi I wonder if anyone can help me im new with the whole linux thing

The problem is that i am hosting a website using Apache + Linux.
Internally I can access the website just fine but the moment anyone tries to access the site through the web it just says "Gateway_Timeout".

If anyone can help me this urgently it would be greatly appreciated.
Thanx

Last edited by isewizz; 09-10-2007 at 08:56 AM.
 
Old 09-10-2007, 10:00 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
That error just means they can not access your web server, the connection is being blocked. http://en.wikipedia.org/wiki/Gateway_timeout

A number of quick reasons...

1. YOUR ISP could be blocking port 80 access, because according to your Terms of Service you are not supposed to be hosting a server on your connection.

2. Your Router may not be set to forward port 80 requests from the Internet to your internal Web server

Those ore the first 2 places I would check.
 
Old 09-10-2007, 10:30 AM   #3
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Rep: Reputation: Disabled
or you could be using the wrong ip.... theres 2 or more for every network theres your local *router* ip address and then theres your internet gateway address you can easily tell witch is witch be looking at them the local is normally 192.168.x.xxx
 
Old 09-10-2007, 10:48 AM   #4
isewizz
LQ Newbie
 
Registered: Sep 2007
Location: South Africa
Distribution: Linux Suse 10.3
Posts: 8

Original Poster
Rep: Reputation: 0
Still nothing

Quote:
Originally Posted by farslayer View Post
That error just means they can not access your web server, the connection is being blocked. http://en.wikipedia.org/wiki/Gateway_timeout

A number of quick reasons...

1. YOUR ISP could be blocking port 80 access, because according to your Terms of Service you are not supposed to be hosting a server on your connection.

2. Your Router may not be set to forward port 80 requests from the Internet to your internal Web server

Those ore the first 2 places I would check.
That's exactly what I did even before this post. My ISP has no probs and my router has already been configured to forward all request on port 80 and the ip address is definitely correct.
 
Old 09-10-2007, 10:55 AM   #5
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Rep: Reputation: Disabled
thats odd then... pm me the link dont post it i have no clue who reads this but send me a privet message with your link
 
Old 09-10-2007, 03:17 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Next thing I would check then is the firewall settings on your Linux box., although you said you could access it locally.. still worth taking a peek

iptables -L
 
Old 09-11-2007, 12:15 PM   #7
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
If you go to www.ipchicken.com, what does your systems IP show? What is your ISP providing you with, dynamic or a static IP address? Once you have your IP address (the one the world sees) can you type it into your browser and get any results? You should see one of two things:
1) Default Apache Screen (index.html)
2) Your web site

First thing I would check and like the others said is your router fire wall, make sure that port forwarding is set to the right ip address. On that note, have you assigned a STATIC IP address to your web server? If not your router could be assigning a different IP every time you reboot. I am willing to bet, at least from my experience that you may being using DHCP on your server rather than a static.

Your setup should look like this:

ISP (IP: 100.100.100.99) --> Your Router (IP: 192.168.1.1) --> To your server (IP: 192.168.1.50)
Static/Dynamic --> Port forward 80 points to ur srv --> static ip on your server

PM me if you need help or e-mail me.

Hope we helped in someway!

Last edited by bskrakes; 09-11-2007 at 12:16 PM.
 
Old 09-15-2007, 05:45 AM   #8
isewizz
LQ Newbie
 
Registered: Sep 2007
Location: South Africa
Distribution: Linux Suse 10.3
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks guys for all your help. Turns out that is was a firewall problem. The firewall was allowing everything from old router's ip and blocking everything else.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web Hosting Provider Verizon Business Expands Managed Hosting ... LXer Syndicated Linux News 0 09-17-2006 06:21 AM
LXer: Web Hosting Provider Zen Internet Offer Linux Hosting Trial for 1 ... LXer Syndicated Linux News 0 04-20-2006 09:33 PM
web hosting emailssent Linux - Networking 1 10-02-2004 03:31 AM
Free web based control panel for web hosting? mooman_fl Linux - Software 0 06-18-2004 05:16 PM
WEb hosting p4ocer Linux - General 3 01-05-2004 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 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