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 - 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 08-14-2012, 08:16 AM   #1
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Rep: Reputation: Disabled
Unhappy Unable to access My Apache Server from internet


I have an apache server set up in my home that I want to host sites from. It was up and running before I moved to another location. I believe I have set up everything the way I did before and I am able sucessfully ping, and nslookup my webpage. However unable to access it from the web.
I am using dnsexit.com for my DNS (free). I have updated my dns numerous time trying my apache server address...
I would like to have a detailed procedure on the basic steps to setup my web server:
config resolv.conf
etc/hosts
and another steps neccesary to get my server back up and running.

Thanks.
Charles

Last edited by nyahuma; 08-14-2012 at 08:18 AM.
 
Old 08-14-2012, 09:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You've a bunch of different things getting mixed up there. Divide and Conquer! if you can ping it then DNS is irrelevant. Can you telnet to port 80 on that address? Have you sorted whatever local networking you need to pass the traffic into the server?
 
Old 08-14-2012, 09:42 AM   #3
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
how do I telnet to port 80?
 
Old 08-14-2012, 09:55 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
can you see your webpage from the server itself. can you test it with using localhost as the url in firefox ?

if that works then try to ssh to it remotely.
 
Old 08-14-2012, 10:05 AM   #5
earthnet
Member
 
Registered: Jul 2012
Distribution: OpenSUSE
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by nyahuma View Post
how do I telnet to port 80?
From the command line:
Code:
telnet <server> 80
You say that this server is located at home? I know that a lot of ISPs block port 80 to home connections to prevent what you are doing. If you can load the page on your home network but not from the Internet I would bet that this is what's happening.
 
Old 08-14-2012, 03:18 PM   #6
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
I am unable to connect to my server through telnet... So what is the solution?
Thanks
Charles
 
Old 08-14-2012, 03:33 PM   #7
earthnet
Member
 
Registered: Jul 2012
Distribution: OpenSUSE
Posts: 36

Rep: Reputation: Disabled
Are you able to connect from your home network?
 
Old 08-14-2012, 03:57 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
check the port forwarding on your router. if you are coming from a Linux/OSx computer you can also use nmap to check the ports that are open. it will not show you if the port if properly forwarded, but will display if the port is open:

from inside my office LAN, this is what I get when I nmap my company URL.

Code:
[ray@ray /stuff/backup]$ nmap rx30.com

Starting Nmap 6.00 ( http://nmap.org ) at 2012-08-14 16:56 EDT
Nmap scan report for rx30.com (192.168.200.88)
Host is up (0.074s latency).
Other addresses for rx30.com (not scanned): 10.10.0.20 10.10.0.21
rDNS record for 192.168.200.88: poseidon.rx30.com
Not shown: 981 closed ports
PORT      STATE SERVICE
42/tcp    open  nameserver
80/tcp    open  http
88/tcp    open  kerberos-sec
135/tcp   open  msrpc
139/tcp   open  netbios-ssn
389/tcp   open  ldap
445/tcp   open  microsoft-ds
464/tcp   open  kpasswd5
593/tcp   open  http-rpc-epmap
636/tcp   open  ldapssl
1028/tcp  open  unknown
1029/tcp  open  ms-lsa
1068/tcp  open  instl_bootc
1095/tcp  open  nicelink
3268/tcp  open  globalcatLDAP
3269/tcp  open  globalcatLDAPssl
3389/tcp  open  ms-wbt-server
5666/tcp  open  nrpe
27000/tcp open  flexlm0

Nmap done: 1 IP address (1 host up) scanned in 1.46 seconds
again do keep in mind this is the LAN side view of that URL. a better example might be this web site:

Code:
[ray@ray /stuff/backup]$ nmap ssma.us

Starting Nmap 6.00 ( http://nmap.org ) at 2012-08-14 16:57 EDT
Nmap scan report for ssma.us (69.28.72.76)
Host is up (0.019s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.66 seconds
clearly the only port open is port 80, the port needed to view that URLs web page information.
 
Old 08-14-2012, 03:57 PM   #9
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
Unable to connect to my server from the internet

Yes I can connect to my home network
 
Old 08-14-2012, 04:09 PM   #10
earthnet
Member
 
Registered: Jul 2012
Distribution: OpenSUSE
Posts: 36

Rep: Reputation: Disabled
Like lleb said, check the port forwarding on your router. If port forwarding is set up correctly and you can access the page from your home lan but not from the Internet then your ISP is probably blocking port 80. You can usually get around this by running it on a non-standard port but that will require everyone accessing the page to know what it is. For example if you run your web service on port 8080 then to access the page you'd have to enter http://<url>:8080 in the web browser.
 
1 members found this post helpful.
  


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
Unable to access web server from the computer running apache brunoschwartz Linux - Networking 7 08-05-2010 04:55 PM
unable to access ftp server via Internet explorer satishap Linux - Server 5 09-14-2008 03:44 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Unable to access to a website on apache web server bisbane Linux - Networking 3 07-11-2001 09:18 AM
Unable to access to a website on apache web server bisbane General 3 07-10-2001 11:03 AM

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

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