VPS侦探论坛

 找回密码
 注册
查看: 3442|回复: 1

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

[复制链接]
发表于 2015-10-7 11:19:58 | 显示全部楼层 |阅读模式

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.log  access;
    }
include vhost/*.conf;
}
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-10-7 13:30:31 | 显示全部楼层


403一般就只有两种可能,1 目录权限问题 2 缺少index文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-24 06:19 , Processed in 0.030206 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表