Nginx 配置一览

本文为工作备注,如果您为资料而来,就当路过。  

第一天接触Nginx,不想把服务器当掉,备一手。

服务器上Nagin版本:

[root@localhost vhost]# /usr/sbin/nginx -V 
输出:
nginx version: nginx/0.8.53
TLS SNI support disabled
configure arguments: --with-http_stub_status_module --with-http_ssl_module

本地测试版本:

nginx version: nginx/0.7.67
built by gcc 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC)
TLS SNI support enabled
configure arguments:
--user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--with-http_ssl_module
--with-http_realip_module
--with-http_addition_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_gzip_static_module
--with-http_random_index_module
--with-http_secure_link_module
--with-http_stub_status_module
--with-http_perl_module
--with-mail
--with-mail_ssl_module
--with-ipv6
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'

猜你喜欢

转载自leitelyaya.iteye.com/blog/804080