I can access my website internally (local network) but not externally. How do I fix this?
First, I am very new to this, so the solution may be obvious to some, but not to me.
I am running two physical rack servers on the same local network, each is running Ubuntu Server 16.04 with LAMP stack installed. I use the first server to test certain ideas, configurations, etc… The second server is running (hosting) multiple websites using Apache2 Virtual Hosts with no access problems. I am hosting a single website on the first server (not using Apache2’s default.conf) and I can access the website from the local network but not from the internet. I am on a residential IP. I have checked the DNS record for the site in question, it points to the proper IP address. My router is set to forward the appropriate port to the server’s address. UFW appears to be configured properly, and the problem persists if I disable UFW. I have tried shutting down the second server, leaving only one server operating on the network, but the problem persists. I’m not sure where to look next. Any help is greatly appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.