C
C
CraSS2013-07-12 23:35:23
Nginx
CraSS, 2013-07-12 23:35:23

Domain won't open with www?

Good day to all!
Finally moved my site to vps. And everything would be fine, but the domain c www does not open, and without www everything plows.
I tried to prescribe redirects in htaccess, apache and nginx - the effect is zero whole horseradish tenths. In general, as one of the Pilot brothers used to say: “I don’t understand anything ...”.
What could be the problem? Maybe the syntax is wrong? or something with DNS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CraSS, 2013-07-13
@CraSS

In general, it was necessary to register CNAME and set up a redirect. Earned.
Thanks chemik .

H
himik, 2013-07-12
@himik

You redirect yourself to a domain for which there is no config.

server {
    server_name  www.jablog.ru;
    rewrite ^(.*) http://jablog.ru$1 permanent;
}

server {
    server_name jablog.ru;
    #остальной конфиг#
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question