Projekt

Obecné

Profil

Stáhnout (1.13 KB) Statistiky
| Větev: | Revize:
1 33786d3b Tomáš Ballák
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 3543e2c8 Tomáš Ballák
server {
10
    listen 443 ssl;
11
    listen [::]:443 ssl;
12
13 7e702507 Tomáš Ballák
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
14 43cc50af Tomáš Ballák
    ssl_certificate /certificate/cert.pem;
15
    ssl_certificate_key /certificate/key.pem;
16 a60193de ballakt
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 666cada9 Tomáš Ballák
    root /var/www/symfony/public;
22 a60193de ballakt
23 579f9cdd Tomáš Ballák
    index index.php index.html index.htm;
24
25
    location / {
26 a60193de ballakt
        try_files $uri $uri/ /index.php$is_args$args;
27 579f9cdd Tomáš Ballák
    }
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 666cada9 Tomáš Ballák
}