Projekt

Obecné

Profil

Stáhnout (1.18 KB) Statistiky
| Větev: | Revize:
1
server {
2
    listen 443 ssl;
3
    listen 80 default_server;
4
    listen [::]:80 default_server ipv6only=on;
5

    
6
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
7
    ssl_certificate /certificate/cert.pem;
8
    ssl_certificate_key /certificate/key.pem;
9

    
10
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
11
    ssl_prefer_server_ciphers on;
12
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
13

    
14
    root /var/www/symfony/public;
15

    
16
    index index.php index.html index.htm;
17

    
18
    location / {
19
        try_files $uri $uri/ /index.php$is_args$args;
20
    }
21

    
22
    location ~ \.php$ {
23
        try_files $uri /index.php =404;
24
        fastcgi_pass php-upstream;
25
        fastcgi_index index.php;
26
        fastcgi_buffers 16 16k;
27
        fastcgi_buffer_size 32k;
28
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
29
        fastcgi_read_timeout 600;
30
        include fastcgi_params;
31
    }
32

    
33
    location ~ /\.ht {
34
        deny all;
35
    }
36
}
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://$host$request_uri;
44
}
    (1-1/1)