美文网首页
Nginx 403 forbidden

Nginx 403 forbidden

作者: ChangLau | 来源:发表于2018-09-30 13:25 被阅读11次

    修改nginx.conf

    # For more information on configuration, see:
    #   * Official English Documentation: http://nginx.org/en/docs/
    #   * Official Russian Documentation: http://nginx.org/ru/docs/
    
    # 修改user属性为root 表示root当前用户
    user root;
    worker_processes auto;
    error_log /var/log/nginx/error.log;
    pid /var/run/nginx.pid;
    
    # Load dynamic modules. See /usr/share/nginx/README.dynamic.
    include /usr/share/nginx/modules/*.conf;
    
    events {
        worker_connections  1024;
    }
    

    相关文章

      网友评论

          本文标题:Nginx 403 forbidden

          本文链接:https://www.haomeiwen.com/subject/rjlwoftx.html