Access to web site in local

Issues related to configuring your network
Post Reply
zenith
Posts: 3
Joined: 2018/05/14 08:41:24

Access to web site in local

Post by zenith » 2018/05/14 08:53:05

Hi
I am using bind as dns service and nginx as web service.
my website is accessible through internet but i can't open them locally.
if i open website locally i get router login page.
how can i solve this problem?
Thanks

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

Re: Access to web site in local

Post by tunk » 2018/05/14 14:50:05

I don't know what the problem is, but you should provide more info, e.g.:
- how is your network/router setup
- does it work if you use IP or "localhost" in the address field

zenith
Posts: 3
Joined: 2018/05/14 08:41:24

Re: Access to web site in local

Post by zenith » 2018/05/16 14:40:36

I use my wifi router and forward port 53 and 80 to my centos server.
open localhost return nginx default page but open example.com open router config page.
open example.com form another connection or wifi open website normally.

User avatar
TrevorH
Forum Moderator
Posts: 23676
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Access to web site in local

Post by TrevorH » 2018/05/16 15:21:46

Hopefully you're not really using example.com as that is a real domain and almost certainly doesn't belong to you.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

zenith
Posts: 3
Joined: 2018/05/14 08:41:24

Re: Access to web site in local

Post by zenith » 2018/05/16 15:56:49

absolutely i am not using example.com. this is for describing my problem

gjaltemba
Posts: 43
Joined: 2016/11/29 15:23:25

Re: Access to web site in local

Post by gjaltemba » 2018/05/20 14:45:30

It is more difficult to troubleshoot without knowing more details of your web conf and network.

Have you tried adding and entry for the url in the client's hosts file?

Post Reply