Projekt

Obecné

Profil

Stáhnout (1.13 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

    
13
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
14
    ssl_certificate /certificate/cert.pem;
15
    ssl_certificate_key /certificate/key.pem;
16

    
17
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
18
    ssl_prefer_server_ciphers on;
19
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
20

    
21
    root /var/www/symfony/public;
22

    
23
    index index.php index.html index.htm;
24

    
25
    location / {
26
        try_files $uri $uri/ /index.php$is_args$args;
27
    }
28

    
29
    location ~ \.php$ {
30
        try_files $uri /index.php =404;
31
        fastcgi_pass php-upstream;
32
        fastcgi_index index.php;
33
        fastcgi_buffers 16 16k;
34
        fastcgi_buffer_size 32k;
35
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
36
        fastcgi_read_timeout 600;
37
        include fastcgi_params;
38
    }
39

    
40
    location ~ /\.ht {
41
        deny all;
42
    }
43
}
    (1-1/1)