htaccess 设置目录访问密码

2015-07-06

在要设置访问权限的目录加入.htaccess 并写入如下内容 AuthName “Section Name” AuthType Basic www.saoyu.com AuthUserFile D:/www/.htpasswd Require valid-userAuthUserFile D:/www/.htpass…

阅读全文

解决LNMP安装typecho后404问题的方法

2015-06-06

1.打开目录:(站点配置文件默认在/usr/local/nginx/conf/vhost/下面,是一个网站域名.conf的文件),2.把配置文件里下面这行: include enable-php.conf;更换为: include enable-php-pathinfo.conf;…

阅读全文