Skip to content

Commit 6660ab3

Browse files
committed
fix config file
1 parent c0caec5 commit 6660ab3

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

nginx/conf.d/default.conf

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
server {
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
}

0 commit comments

Comments
 (0)