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
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: 313
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