LinuxQuestions.org
Help answer threads with 0 replies.
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 07-24-2012, 08:10 PM   #1
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Rep: Reputation: Disabled
No longer able to connect to my apache server from the internet.


I am fascinated with the idear of hosting a few web pages of my own. However, I moved to a new address and now I can no longer access my website from the internet. I have a name server. I have been able to ping that. nslookup verifies my name server. I can access the website from my local network with my server's ip address.

I have duplicated all the steps I had previously done and can no longer see my website from the internet. I am looking for a some advice and or suggestions.
Thanks.
 
Old 07-24-2012, 08:21 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,482
Blog Entries: 16

Rep: Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206
No answers, just a few more questions:

Can you ping your external ip address from a remote location (see http://www.whatismyip.com/ for your ip address or check your router status)?

How were you publishing your IP address before you moved?

Did you change ISPs when you moved? (Some of them block port 80 for incoming traffic unless you pay for a business account.)
 
Old 07-26-2012, 11:37 AM   #3
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
I think it may be an issue with my dns provider. Free is ot always free. I will look into that end before troubleshooting else where. Thanks.
 
Old 07-26-2012, 06:59 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,482
Blog Entries: 16

Rep: Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206
Let us know what you find. It may help someone else out down the road.
 
1 members found this post helpful.
Old 08-17-2012, 09:04 AM   #5
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
How to connect to website from internet

I have been attempting to reconnect to my apache server through my dns provider. Now I am only able to connecct through my ipaddress/my.domain.com. I am truly a novice so I can only assume that my website is behind by router? Would appreciate any assistance, suggestions or resources concerning this.

Thanks
Nyahuma
 
Old 08-17-2012, 09:09 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,518

Rep: Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104
Quote:
Originally Posted by nyahuma View Post
Now I am only able to connecct through my ipaddress/my.domain.com.
How else are you looking to connect?
 
Old 08-17-2012, 09:50 AM   #7
sKaar
Member
 
Registered: Jun 2006
Location: dartmouth, nova scotia
Distribution: slackware 12.1
Posts: 74

Rep: Reputation: 2
i'm using a free dns provider that doesn't work for trying to access local machine with domain name, fine for everyone else. since i know that keeping it updated that i still want the name will make it work fine for others, i just changed my hosts file to direct to the servers lan address, works fine. get someone else to test it for you.
 
Old 08-17-2012, 10:19 AM   #8
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
No longer able to connect to my apache server for the internet

I can access my web page from outside my home network.... if I type in my ipaddress I get the default apache server page "It Works!". But in order to view my website I must type ipaddress/my.domain.com How do I "changed my hosts file to direct to the servers lan address?" that might just do the trick.
Thanks
Nyahuma
 
Old 08-17-2012, 10:25 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,518

Rep: Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104Reputation: 2104
Quote:
Originally Posted by sKaar View Post
i'm using a free dns provider that doesn't work for trying to access local machine with domain name, fine for everyone else. since i know that keeping it updated that i still want the name will make it work fine for others, i just changed my hosts file to direct to the servers lan address, works fine. get someone else to test it for you.
That's probably because your router/modem doesn't allow loopback connections. This is when you type in a domain/ip, which redirects you back to the WAN port of your own router, and back inside your own network. Some routers/modems don't allow this, in which case you have to go directly to the LAN IP of the machine you're trying to access when you're inside the network.
 
1 members found this post helpful.
Old 08-17-2012, 04:46 PM   #10
sKaar
Member
 
Registered: Jun 2006
Location: dartmouth, nova scotia
Distribution: slackware 12.1
Posts: 74

Rep: Reputation: 2
in /etc/hosts you just add the lan ip address, then the domain name, there's probably a few examples already in there... might also be good to put spammer and advertiser domains in there with 127.0.0.1 so they don't resolve.
 
1 members found this post helpful.
Old 08-30-2012, 08:34 AM   #11
nyahuma
LQ Newbie
 
Registered: Jul 2012
Location: Kansas City
Posts: 13

Original Poster
Rep: Reputation: Disabled
Smile I have made some progress

I appreciate all the assistance on reconnecting my apache server to the web. Initially I was able to connect from the web to my websites, until I moved and my ISP change the server I had used previously. Well now I can access one(1) website from the internet hosted on my server. However, I am unable to connect with any other site that I am hosting. I have placed my VirtualHosts in my default file in sites-available (like I had done previously) but regardless of the url I get the first VirtualHost. I would like to know how to correct this issue.

Thanks for Your assistance and valuable information.

nyahuma
 
  


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
can't connect to apache server over internet ikarus Linux - Networking 4 11-01-2009 11:10 PM
rtl8187 chipset can no longer connect to the internet fakie_flip Linux - Laptop and Netbook 2 10-19-2009 10:03 PM
No longer able to connect to internet wirelessly miclav Linux - Newbie 4 09-29-2009 01:46 PM
How do I connect a linux internet server (apache/email) to windows 2000 domain? Linux_viper Linux - General 2 05-10-2006 07:40 AM
oops. No longer able to connect to the internet through my DSL mbreith Linux - Newbie 10 02-17-2006 03:57 PM

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

All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration