I
I
i_want_to_know_everything2016-11-24 11:02:58
Nginx
i_want_to_know_everything, 2016-11-24 11:02:58

Nginx domain with www http without www https?

Tell me how to set up nginx so that a domain with www works on http, and without www on https

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2016-11-24
@MaxDukov

server {
    listen       80;
    server_name  www.myserver.ru;
    ...
}
server {
    listen       443;
    server_name  myserver.ru;
    ...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question