摘要: nginx服务器日志相关指令主要有两条,一条是log_format,用来设置日志格式,另外一条是access_log,用来指定日志文件的存放路径、格式和缓存大小,一般在nginx的配置文件中日记配置(/usr/local/nginx/conf/nginx.conf)。 nginx的log_forma 阅读全文
posted @ 2018-02-27 16:51 狂猫 阅读(822) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name www.php12.cn php12.mama1314.com; root /var/www/shf; location / { index index.php index.html; } location ~ \.php$ { roo 阅读全文
posted @ 2018-02-27 15:41 狂猫 阅读(208) 评论(0) 推荐(0) 编辑
摘要: shell > vim /usr/local/nginx-1.10.2/conf/vhost/auth.conf # 这是第三方认证服务器,认证逻辑使用的 PHP 代码 server { listen 80; server_name auth.server.com; location ~ \.php 阅读全文
posted @ 2018-02-27 15:09 狂猫 阅读(416) 评论(0) 推荐(0) 编辑