Debian系统下为PHP程序配置Nginx服务器的基本教程

2019-10-17 20:00:21王冬梅

  --with-http_gzip_static_module     开启gzip模块

  --with-http_secure_link_module     enable ngx_http_secure_link_module

  --with-http_stub_status_module     开启状态查看模块

 

  以下模块默认是开启的,可以使用--without选项关闭相关模块

  --without-http_charset_module      disable ngx_http_charset_module

  --without-http_gzip_module         禁用gzip压缩模块

  --without-http_ssi_module          禁用ssl模块

  --without-http_userid_module       disable ngx_http_userid_module

  --without-http_access_module       禁用access模块

  --without-http_auth_basic_module   禁用auth_basic认证模块

  --without-http_autoindex_module    禁用列目录模块

  --without-http_geo_module          禁用geo模块

  --without-http_map_module          禁用map模块

  --without-http_referer_module      disable ngx_http_referer_module

  --without-http_rewrite_module      禁用重定向模块

  --without-http_proxy_module        禁用代理模块

  --without-http_fastcgi_module      禁用fastcgi模块

  --without-http_uwsgi_module        disable ngx_http_uwsgi_module

  --without-http_scgi_module         disable ngx_http_scgi_module

  --without-http_memcached_module    disable ngx_http_memcached_module

  --without-http_limit_conn_module   disable ngx_http_limit_conn_module

  --without-http_limit_req_module    disable ngx_http_limit_req_module

  --without-http_empty_gif_module    disable ngx_http_empty_gif_module

  --without-http_browser_module      disable ngx_http_browser_module

  --without-http_upstream_ip_hash_module    禁用upstream模块

 --with-http_perl_module            开启perl模块
  --with-perl_modules_path=PATH      设置perl模块路径
  --with-perl=PATH                   为perl库设置路径
  --http-client-body-temp-path=PATH  set path to store http client request body temporary files
  --http-proxy-temp-path=PATH        set path to store http proxy temporary files