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