Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 074b0f1c

Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)

fix default server + server_name

Zobrazit rozdíly:

docker/nginx/sites/default.conf
35 35
    }
36 36
}
37 37
server {
38
    listen 80 ;
39
    listen [::]:80;
38
    listen 80 default_server;
39
    listen [::]:80 default_server;
40 40
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
41 41

  
42 42
    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
43
    return 301 https://$host$request_uri;
43
    return 301 https://$server_name$request_uri;
44 44
}

Také k dispozici: Unified diff