摘要: 在要配置主机文件配置文件增加 Nginx防盗链 阅读全文
posted @ 2018-05-16 22:02 chyuanliu 阅读(160) 评论(0) 推荐(0)
摘要: Nginx没有自带日志切割工具,apache自带日志切割工具。借助系统自助切割工具或者shell脚本。 阅读全文
posted @ 2018-05-16 20:38 chyuanliu 阅读(343) 评论(0) 推荐(0)
摘要: 日志格式 vim /usr/local/nginx/conf/nginx.conf //搜索log_format 阅读全文
posted @ 2018-05-16 20:06 chyuanliu 阅读(3970) 评论(0) 推荐(0)
摘要: 更改test.com.conf server { listen 80; server_name test.com test1.com test2.com; index index.html index.htm index.php; root /data/wwwroot/test.com; if ($host != 'test.com' ) { ... 阅读全文
posted @ 2018-05-16 19:37 chyuanliu 阅读(730) 评论(0) 推荐(0)
摘要: 编辑配置文件vim /usr/local/nginx/conf/vhost/test.com.conf 生成密码文件 对nginx测试配置并重新加载 测试网站 编辑windows的hosts文件,然后在浏览器中访问test.com会有输入用户、密码的弹窗 针对目录进行用户验证 阅读全文
posted @ 2018-05-16 19:16 chyuanliu 阅读(378) 评论(0) 推荐(0)