摘要: server{ listen 80; server_name api.zyy.com; root /var/www/api_zyy; index index.php; location ~ /assets/ {# access_log logs/static.log common; #设置静态内容有 阅读全文
posted @ 2016-05-24 19:59 燕山小将 阅读(906) 评论(0) 推荐(0)
摘要: 通常我们应用nginx做代理时,用到它的轮训服务 #设置轮询名称 upstream zyy{ server 127.0.0.1:8080 #本机的apache服务 } server { listen 80; server_name test.com; root /test; location / { 阅读全文
posted @ 2016-05-24 19:52 燕山小将 阅读(2328) 评论(0) 推荐(0)