mirror of
https://github.com/DanWin/hosting.git
synced 2025-08-17 19:13:46 +02:00
Enable fastcgi_cache
This commit is contained in:
parent
dda49153b3
commit
943ca4b151
2 changed files with 9 additions and 8 deletions
|
@ -85,6 +85,15 @@ http {
|
|||
# gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
|
||||
|
||||
fastcgi_index index.php;
|
||||
fastcgi_read_timeout 30m;
|
||||
fastcgi_max_temp_file_size 0;
|
||||
fastcgi_buffer_size 8K;
|
||||
fastcgi_buffers 32 8k;
|
||||
fastcgi_cache fcache;
|
||||
fastcgi_cache_path /tmp/nginx/ levels=2 keys_zone=fcache:5m inactive=1h max_size=1G;
|
||||
fastcgi_cache_key $host$request_uri;
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
##
|
||||
|
|
|
@ -9,12 +9,4 @@ try_files $fastcgi_script_name =404;
|
|||
set $path_info $fastcgi_path_info;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
|
||||
fastcgi_read_timeout 30m;
|
||||
#fastcgi_read_timeout 600s;
|
||||
fastcgi_max_temp_file_size 0;
|
||||
fastcgi_buffer_size 8K;
|
||||
fastcgi_buffers 32 8k;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue