Projekt

Obecné

Profil

Stáhnout (1.35 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
    ssl_certificate /certificate/cert.pem;
13
    ssl_certificate_key /certificate/key.pem;
14
    server_name www.heatmap.zcu.cz;
15

    
16
    return 301 https://heatmap.zcu.cz$request_uri;
17
}
18
server {
19
    listen 443 ssl;
20
    listen [::]:443 ssl;
21

    
22
    server_name heatmap.zcu.cz;
23
    ssl_certificate /certificate/cert.pem;
24
    ssl_certificate_key /certificate/key.pem;
25

    
26
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
27
    ssl_prefer_server_ciphers on;
28
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
29

    
30
    root /var/www/symfony/public;
31

    
32
    index index.php index.html index.htm;
33

    
34
    location / {
35
        try_files $uri $uri/ /index.php$is_args$args;
36
    }
37

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

    
49
    location ~ /\.ht {
50
        deny all;
51
    }
52
}
    (1-1/1)