Visit local website

Issues related to configuring your network
User avatar
TrevorH
Forum Moderator
Posts: 21718
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Postby 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?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: Visit local website

Postby 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
Forum Moderator
Posts: 21718
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Postby 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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: Visit local website

Postby 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
Forum Moderator
Posts: 21718
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Visit local website

Postby 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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: Visit local website

Postby tunk » 2018/01/23 11:04:43

403 could be an apache config problem.