小编Ste*_*fan的帖子

站点启用/中不允许使用 nginx“mail”和“stream”指令

当我尝试在 nginx 中使用流或邮件指令时遇到问题。我正在使用 nginx/1.16.1 和 Ubuntu 18.04.4 LTS。
这是我的 nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 1200;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    server_tokens off;

    server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log off;
                    #/var/log/nginx/access.log;
    error_log /var/log/nginx/error_website.log; …
Run Code Online (Sandbox Code Playgroud)

nginx nginx-reverse-proxy nginx-config nginx-module

2
推荐指数
1
解决办法
9050
查看次数