File tree Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Original file line number Diff line number Diff line change 11server {
2- listen 80 default_server;
3- listen [::]:80 default_server ipv6only=on;
2+ listen 80 default_server;
3+ listen [::]:80 default_server ipv6only=on;
44
5- server_name localhost;
6- root /var/www/;
7- index index.php index.html index.htm;
5+ server_name localhost;
6+ root /var/www/;
7+ index index.php index.html index.htm;
88
9- location / {
10- try_files $uri $uri/ /index.php$is_args$args ;
11- }
9+ location ~ /\.ht {
10+ deny all ;
11+ }
1212
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- }
13+ location / {
14+ try_files $uri $uri/ /index.php$is_args$args;
15+ }
16+
17+ location ~ \.php$ {
18+ try_files $uri /index.php =404;
19+ fastcgi_pass php-upstream;
20+ fastcgi_index index.php;
21+ fastcgi_buffers 16 16k;
22+ fastcgi_buffer_size 32k;
23+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
24+ fastcgi_read_timeout 600;
25+ include fastcgi_params;
26+ }
2327
24- location ~ /\.ht {
25- deny all;
26- }
2728}
You can’t perform that action at this time.
0 commit comments