1
|
server {
|
2
|
listen 80 default_server;
|
3
|
listen [::]:80 default_server ipv6only=on;
|
4
|
|
5
|
#
|
6
|
# TODO: set website domain
|
7
|
#
|
8
|
server_name heatmap.zcu.cz www.heatmap.zcu.cz;
|
9
|
root /var/www/symfony/public;
|
10
|
index index.php index.html index.htm;
|
11
|
|
12
|
location / {
|
13
|
try_files $uri $uri/ /index.php$is_args$args;
|
14
|
}
|
15
|
|
16
|
location ~ \.php$ {
|
17
|
try_files $uri /index.php =404;
|
18
|
fastcgi_pass php-upstream;
|
19
|
fastcgi_index index.php;
|
20
|
fastcgi_buffers 16 16k;
|
21
|
fastcgi_buffer_size 32k;
|
22
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
23
|
fastcgi_read_timeout 600;
|
24
|
include fastcgi_params;
|
25
|
}
|
26
|
|
27
|
location ~ /\.ht {
|
28
|
deny all;
|
29
|
}
|
30
|
}
|