Ngi
x反向代理配置文档
一、Ngi
x的安装
1、安装pcre库、
u
zippcre812zipcdpcre812co
figuremakemakei
stall
2、安装
gi
x、
useradd
gi
xtarxf
gi
x0853targzcd
gi
x0853co
figureprefixhome
gi
x
gi
xwithhttp_ssl_modulemakemakei
stall
withhttp_stub_status_module
3、注意事项、
如果使用非root用户启动,会提示警告,可以将该用户赋予sudo权限。
二、修改配置文件
cdhome
gi
x
gi
xco
fvim
gi
xco
f输入如下内容user
gi
x
gi
xworker_processes8error_loglogserrorlogerror_loglogserrorlog
oticeerror_loglogserrorlogi
fopidlogs
gi
xpid
worker_rlimit_
ofile51200eve
tsuseepollworker_co
ectio
s51200
http
fi
cludemimetypesdefault_typeapplicatio
octetstreamserver_
ames_hash_bucket_size128clie
t_header_buffer_size32klarge_clie
t_header_buffers432klog_formatmai
remote_addrremote_usertime_local