Projekt

Obecné

Profil

Stáhnout (1.59 KB) Statistiky
| Větev: | Revize:
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
}
9
server {
10
    listen 443 ssl;
11
    listen [::]:443 ssl;
12
    server_name www.heatmap.zcu.cz;
13
    ssl_certificate /certificate/cert.pem;
14
    ssl_certificate_key /certificate/key.pem;
15
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
16
    ssl_prefer_server_ciphers on;
17
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
18

    
19
    return 301 https://heatmap.zcu.cz$request_uri;
20
}
21
server {
22
    listen 443 ssl;
23
    listen [::]:443 ssl;
24

    
25
    server_name heatmap.zcu.cz;
26
    ssl_certificate /certificate/cert.pem;
27
    ssl_certificate_key /certificate/key.pem;
28

    
29
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
30
    ssl_prefer_server_ciphers on;
31
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
32

    
33
    root /var/www/symfony/public;
34

    
35
    index index.php index.html index.htm;
36

    
37
    location / {
38
        try_files $uri $uri/ /index.php$is_args$args;
39
    }
40

    
41
    location ~ \.php$ {
42
        try_files $uri /index.php =404;
43
        fastcgi_pass php-upstream;
44
        fastcgi_index index.php;
45
        fastcgi_buffers 16 16k;
46
        fastcgi_buffer_size 32k;
47
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
48
        fastcgi_read_timeout 600;
49
        include fastcgi_params;
50
    }
51

    
52
    location ~ /\.ht {
53
        deny all;
54
    }
55
    location ~ /.well-known {
56
        allow all;
57
        root /var/www/symfony/public;
58
    }
59
}
    (1-1/1)