Welcome! Log In Create A New Profile

Advanced

Відповідь: Как правильно склеить www на без www?

July 21, 2020 05:20AM
Как пример:

server {

    server_name serer.name www.server.name;

    listen 80;

    listen 443 ssl http2;



    if ($host != "server.name") {

        rewrite ^   https://server.name$request_uri? permanent;

    }_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Відповідь: Как правильно склеить www на без www?

Dmytro Lavryk July 21, 2020 05:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready