[SOLVED] No longer able to connect to my apache server from the internet.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.