The new nginx version is installed, but I still like squid more. Here we will write a freebsd7.0 method using nginx/0.5.35. About make install clean ~~ No.
# User nobody;
Worker_processes 1;
Error_log Ar/log inx_error.log;
PID Ar/run variable. PID;
Events {
Use kqueue;
Worker_connections 65535;
}
HTTP {
Include mime. types;
Default_type application/octet-stream;
Log_format main '$ remote_addr-$ remote_user [$ time_local] $ request'
'"$ Status" $ body_bytes_sent "$ http_referer "'
'"$ Http_user_agent" "$ http_x_forwarded_for "';
Access_log Ar/log inx_access.log main;
Client_header_timeout 3 m;
Client_body_timeout 3 m;
Send_timeout 3 m;
Sendfile on;
Tcp_nopush on;
Tcp_nodelay on;
Keepalive_timeout 65;
Client_header_buffer_size 1 K;
Large_client_header_buffers 4 4 K;
Output_buffers 1 32 K;
Post pone_output 1460;
Gzip on;
Gzip_min_length 1100;
Gzip_buffers 4 8 K;
Gzip_types text/plain;
Upstream mysvr {
Server 192.168.0.1: 80 Weight = 5;
}
This is my configuration. But it seems that there is no squid fast, huh, huh.