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: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready