Visit local website

Issues related to configuring your network
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Post by TrevorH » 2018/01/22 16:10:35

The I have ports 80 and 443 open on my server. It has apache
How did you open those?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vicwoods
Posts: 11
Joined: 2018/01/22 14:30:04

Re: Visit local website

Post by vicwoods » 2018/01/22 16:13:51

TrevorH wrote:
The I have ports 80 and 443 open on my server. It has apache
How did you open those?

sudo firewall-cmd --permanent --add-port=80/tcp

sudo firewall-cmd --permanent --add-port=443/tcp

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Post by TrevorH » 2018/01/22 16:22:06

Yes, so run those again without --permanent or you need to reload firewalld or reboot. The --permanent flag adds the rule to the permanent list but doesn't affect the running rules.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vicwoods
Posts: 11
Joined: 2018/01/22 14:30:04

Re: Visit local website

Post by vicwoods » 2018/01/22 17:20:27

TrevorH wrote:Yes, so run those again without --permanent or you need to reload firewalld or reboot. The --permanent flag adds the rule to the permanent list but doesn't affect the running rules.
Did that but is still keeps saying that is't unable to resolve the host address

When i try to access it through the ip address I get a 403 forbidden.. Ant thought on how i can fix that?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Post by TrevorH » 2018/01/22 20:29:14

Did that but is still keeps saying that is't unable to resolve the host address
Not able to resolve the address means it cannot find the site by name. You did add it to _that_ system's hosts file? /etc/hosts or its Windows equivalent are only applicable to the system that they reside on - altering it doesn't magically make the name known to the rest of the world.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: Visit local website

Post by tunk » 2018/01/23 11:04:43

403 could be an apache config problem.

Post Reply