Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
start [2018/12/21 20:02]
toxa
start [2020/11/05 00:50] (текущий)
toxa создано
Строка 1: Строка 1:
-===== Nginx ===== +=== Start page ===
-<code nginx> +
-# load_module modules/ndk_http_module.so ;  +
-# load_module   modules/ngx_http_set_misc_module.so ;  +
-# load_module modules/ngx_http_encrypted_session_module.so ;  +
- +
-load_module modules/ngx_http_lua_module.so ;  +
-# load_module modules/ngx_http_lua_raptor_module.so ;  +
- +
-user  nginx; +
-# worker_processes  auto; +
-worker_processes  4; +
- +
-error_log  /var/log/nginx/error.log error; +
- +
-pid        /var/run/nginx.pid; +
- +
-worker_rlimit_nofile 32768 ; +
- +
-pcre_jit on ; +
- +
-events { +
-    use epoll ; +
-    worker_connections  32768 ; +
-+
- +
-http { +
-    include       /etc/nginx/mime.types; +
-#    default_type  application/octet-stream; +
-    default_type  text/plain ;  +
- +
-    log_format  main  '$remote_addr - $remote_user [$time_local] "$request"+
-                      '$status $body_bytes_sent "$http_referer"+
-                      '"$http_user_agent" "$http_x_forwarded_for" $http_host $request_time '; +
- +
-    access_log  /var/log/nginx/access.log  main; +
- +
-    sendfile        on; +
-    #tcp_nopush     on; +
- +
-    keepalive_timeout  3; +
- +
-    #gzip  on; +
- +
-    client_max_body_size            1m; +
- +
-    proxy_buffer_size 64k; +
-    proxy_buffers 4 128k; +
-    proxy_busy_buffers_size 128k; +
- +
-    lua_shared_dict status_codes 1M; +
- +
-#     lua_code_cache off;  +
- +
-    init_by_lua_file        /etc/nginx/lua/init.lua ;  +
-    init_worker_by_lua_file /etc/nginx/lua/init-worker.lua ;  +
- +
-    include /etc/nginx/conf.d/*.conf; +
- +
-+
- +
-</code>+