Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apache - DNS Name Problem

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
tocsikbt
Posts: 2
Joined: 2018-02-03 19:00

Apache - DNS Name Problem

#1 Post by tocsikbt »

Dear All,

I installed an Apache on my debian server.
After that I registered a dns name on noip.com and I set a port forwarding (source port: 80, ip address of my server, destination port: 80) on my router at home.
When I try reach the default index.html from the outside (internet side) with the dns name (example.ddns.net), than it's working fine.
But when I try reach the default index.html from my private lan with the dns name, than it isn't working. (ERR_CONNECTION_REFUSED)
It is working from my private lan just in case, when I try it with the private ip of my server.

Do you have any idea for this issue?

Thank you in advance!

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

Re: Apache - DNS Name Problem

#2 Post by dcihon »

/etc/hosts file

tocsikbt
Posts: 2
Joined: 2018-02-03 19:00

Re: Apache - DNS Name Problem

#3 Post by tocsikbt »

The problem has been resolved. I added the DNS name and the IP-Address of the Server to the host file of my PC. So I can reach my website from the outside and from my private LAN also.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Apache - DNS Name Problem

#4 Post by p.H »

tocsikbt wrote:But when I try reach the default index.html from my private lan with the dns name, than it isn't working. (ERR_CONNECTION_REFUSED)
The port forwarding in your router does not work from the private LAN. Quite common. Port forwarding from the private LAN requires special handling in order to work.
tocsikbt wrote:The problem has been resolved. I added the DNS name and the IP-Address of the Server to the host file of my PC.
No, the problem has not been resolved. This is just a workaround, with shortcomings (as often with workarounds).
tocsikbt wrote:So I can reach my website from the outside and from my private LAN also.
Not on the same computer. If you try to reach your web site from the outside on that computer, it will use the private IP address defined in the hosts file and fail.

A better solution is that the DNS server on your private LAN serves the private address.

Post Reply