Projekt

Obecné

Profil

Stáhnout (1.18 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 80 default_server;
12
    listen [::]:80 default_server ipv6only=on;
13

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

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

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

    
24
    index index.php index.html index.htm;
25

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

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

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