#My vlson.top project
#frontend
server {
listen 80;
server_name www.vlson.com; #charset koi8-r; set $app_root F:/vlson/advanced/frontend/web/;
set $project_root F:/vlson/advanced/frontend/;
root $app_root; access_log logs/frontend.access.log main; location / {
root $app_root;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
} error_page 404 /404.html; # redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root F:/vlson/frontend/web/;
} # proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php(.*)$ {
root F:/vlson/advanced/frontend/web/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
} #location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${
# #expires 30d;
# root $project_root;
#}
#location ~ .*\.(js|css)?${
# root $project_root;
#} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
#My vlson.top project
#backend
server {
listen 80;
server_name backend.vlson.com;
client_max_body_size 5M; #charset koi8-r;
set $app_root F:/vlson/advanced/backend/web/;
set $project_root F:/vlson/advanced/backend/;
root $app_root; access_log logs/backend.access.log main; location / {
#root $app_root;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
} error_page 404 /404.html; # redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root $app_root;
} # proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php(.*)$ {
root F:/vlson/advanced/backend/web/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

最新文章

  1. Java时间类型转换
  2. 【java开发】分支语句、循环语句学习
  3. IOS开发--支付宝支付
  4. Linux文件和目录
  5. VB .NET周期实现
  6. jzoj[1224]
  7. 解决oracle 端口 1521 本机127可通 其他ip不通
  8. Javascript中setTimeout()的用法详解
  9. win7 系统如何设置快速启动栏
  10. LightOj_1287 Where to Run
  11. Android ListView中 每一项都有不同的布局
  12. inline-block 垂直居中
  13. 2017年浙江理工大学程序设计竞赛校赛 题解&源码(A.水, D. 简单贪心 ,E.数论,I 暴力)
  14. PGM:概率论基础知识
  15. Kotlin中,lateinit 和 lazy{} 的区别
  16. OpenMVG学习笔记
  17. Python oracle乱码问题
  18. C# 加特效
  19. C语言清空输入缓冲区的N种方法对比【转】
  20. ajax课2JSON

热门文章

  1. Chrome:不受信任的证书----openssl签发带Subject Alternative Name的证书
  2. HTML5的服务器EventSource(server-sent event)发送事件
  3. 如何将业务代码写得像诗一样(使用注解+单例+工厂去掉一大波if和else判断)
  4. Synchronize深入
  5. Flask自动刷新前端页面(方便调试)livereload
  6. 【转】什么是5G?居然有人用漫画把它讲得如此接地气!
  7. 【C/C++开发】C++11:左值引用VS右值引用
  8. CentOS7-Docker 配置国内镜像源
  9. xe.10.2的下载路径
  10. 【leetcode】347. Top K Frequent Elements