S
S
Sergey Komlev2015-02-13 22:55:42
CMS
Sergey Komlev, 2015-02-13 22:55:42

Why is the site not accessible without www?

Tell me why the site triskirun.ru is available only with the www prefix, following the link without www - triskirun.ru , the site does not open.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2015-02-13
@sergeykomlev

You don't have an entry for triskirun.ru.
nslookup triskirun.ru
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
*** Can't find triskirun.ru: No answer
Write down the DNS entry first.
Then set up the web server.
I have it done like this
server {
listen www.XXX.YY:80;
server_name www.XXX.YY;
if ($host !~* ^(www.XXX.YY)$ ) {
return 444;
}
location / {
rewrite ^/(.*)$ http://XXX.YY$1 permanent;
}
}
Accordingly for nginx. if about host can be removed, this is my personal trouble, the habit of setting it up like this.
Accordingly, everything that comes to the address with www is sent to the address without www, and there everything is already set up and responds with what is needed.
And on the part of the domains, I simply basically don’t have a record with www in DNSs and nothing is redirected anywhere, respectively, and idiots everywhere trying to write www simply don’t get there by typing the address with their hands.

S
SagePtr, 2015-02-13
@SagePtr

Is the hosting company sits.pro? If not, then it is possible that the NS servers of the domain are incorrect. And if so, dig in their direction, since ns1.sits.pro returns an address to a request for a domain with a prefix, and does not return it without a prefix.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question