nginx.conf简单配置
# cat nginx/conf/nginx.confworker_processes1;
error_loglogs/error.log error;
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
sendfile on;
keepalive_timeout65;
log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_loglogs/access.logmain;
server {
listen80;
location /{
deny all;
}
include extra/www.conf;
include extra/bbs.conf;
include extra/blog.conf;
}
页:
[1]