jackpacman 发表于 2015-10-7 11:19:58

lnmp1.2 网站访问加密后,访问子目录 都报403

lnmp1.2 网站访问加密后,访问子目录 都报403
以下是配置信息,大神们帮帮忙啊。以前0.6的时候弄过是好用的
server
    {
      listen 80 default_server;
      #listen [::]:80 default_server ipv6only=on;
      server_name www.lnmp.org;
      index index.html index.htm index.php;
      auth_basic "input you user name and password";
      auth_basic_user_file /usr/local/nginx/conf/passwd;
      root/home/wwwroot/default;
      #error_page   404   /404.html;

      include enable-php.conf;

      location /nginx_status
      {
            stub_status on;
            access_log   off;
      }

      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
      {
            expires      30d;
      }

      location ~ .*\.(js|css)?$
      {
            expires      12h;
      }

      location ~ /\.
      {
            deny all;
      }

      access_log/home/wwwlogs/access.logaccess;
    }
include vhost/*.conf;
}

licess 发表于 2015-10-7 13:30:31

403一般就只有两种可能,1 目录权限问题 2 缺少index文件
页: [1]
查看完整版本: lnmp1.2 网站访问加密后,访问子目录 都报403