File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
server {
2
- listen 80 ;
3
- server_name "" ;
2
+ listen 10401 ;
3
+ server_name image-dl.tavuru.net ;
4
4
5
5
access_log /home/container/logs/naccess.log;
6
6
error_log /home/container/logs/nerror.log error;
7
7
8
8
root /home/container/www;
9
9
index index.html index.htm index.php;
10
10
charset utf-8;
11
-
11
+
12
12
location / {
13
13
try_files $uri $uri/ /index.php?$query_string;
14
14
}
@@ -19,6 +19,9 @@ server {
19
19
client_max_body_size 100m;
20
20
client_body_timeout 120s;
21
21
sendfile off;
22
+
23
+
24
+
22
25
location ~ \.php$ {
23
26
fastcgi_split_path_info ^(.+\.php)(/.+)$;
24
27
fastcgi_pass unix:/home/container/tmp/php-fpm.sock;
@@ -35,6 +38,10 @@ server {
35
38
fastcgi_read_timeout 300;
36
39
}
37
40
41
+ location ~ /(vendor|composer\.lock|composer\.json) {
42
+ deny all;
43
+ }
44
+
38
45
location ~ /\.git {
39
46
deny all;
40
47
}
You can’t perform that action at this time.
0 commit comments