Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 33786d3b

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

fix #2

Zobrazit rozdíly:

docker/nginx/sites/default.conf
1
server {
2
    listen 80;
3
    listen [::]:80;
4
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
5

  
6
    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
7
    return 301 https://$server_name$request_uri;
8
}
1 9
server {
2 10
    listen 443 ssl;
3 11
    listen 80 default_server;
......
34 42
        deny all;
35 43
    }
36 44
}
37
server {
38
    listen 80;
39
    listen [::]:80;
40
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
41

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

Také k dispozici: Unified diff