Skip to content

Commit 9d1413d

Browse files
committed
php_pool
1 parent 940e13e commit 9d1413d

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
server {
22

3-
listen {{NGINX_LISTEN_PORT}};
4-
root {{NGINX_WEBROOT}}/public;
5-
index index.php ;
6-
7-
include {{NGINX_HEADER_FILE}};
8-
9-
location / {
10-
try_files $uri $uri/ /index.php?$query_string;
11-
}
12-
13-
location ~ \.php$ {
14-
include /etc/nginx/snippets/server.available/php-fpm/www.conf;
15-
try_files $uri =404;
16-
fastcgi_split_path_info ^(.+\.php)(/.+)$;
17-
fastcgi_index index.php;
18-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19-
include fastcgi_params;
20-
}
21-
22-
location ~* ^/(?:css|js)/.*\.(?:css|js)$ {
3+
listen {{NGINX_LISTEN_PORT}};
4+
root {{NGINX_WEBROOT}}/public;
5+
index index.php ;
6+
7+
include {{NGINX_HEADER_FILE}};
8+
9+
location / {
10+
try_files $uri $uri/ /r.php;
11+
}
12+
13+
location ~ \.php$ {
14+
include /etc/nginx/snippets/server.available/php-fpm/{{PHP_POOL}}.conf;
15+
try_files $uri =404;
16+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
17+
fastcgi_index index.php;
18+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19+
include fastcgi_params;
20+
}
21+
22+
location ~* ^/(?:css|js)/.*\.(?:css|js)$ {
2323
expires 2d;
2424
access_log off;
2525
add_header Cache-Control "public, must-revalidate";
26-
}
26+
}
2727

28-
location ~* ^/(?:css|fonts|img|installer|js|modules|[^\\\]+\..*)$ {
28+
location ~* ^/(?:css|fonts|img|installer|js|modules|[^\\\]+\..*)$ {
2929
expires 1M;
3030
access_log off;
3131
add_header Cache-Control "public";
32-
}
32+
}
3333

34-
location /uploads {
35-
autoindex off;
36-
}
34+
location /uploads {
35+
autoindex off;
36+
}
3737

38-
location ~ /\. {
39-
deny all;
40-
}
38+
location ~ /\. {
39+
deny all;
40+
}
4141

4242
### Don't edit past here
4343
}

0 commit comments

Comments
 (0)