@GivenCui
2017-07-07T19:11:35.000000Z
字数 766
阅读 791
nginx
Nginx常用配置-简书
Nginx开发从入门到精通
openresty-菜鸟教程
openresty-HOME
openresty-最佳实践
// openresty/site-enabled/devptest.hujiang.com.conf
/*
* gulp.js localhost:9000 =>
* openresty/site-enabled/devptest.hujiang.com.conf http://127.0.0.1:9000/ ==> devptest.hujiang.com:80
*
/
server {
listen 80;
server_name devptest.hujiang.com;
access_log /usr/local/var/log/nginx/devptest.hujiang.com.access.log main;
// location
location ~ /\.ht {
deny all;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location /oral/ {
alias /Users/Given/Working/ptest/oral/dist/;
}
location /dist/ {
root /Users/Given/Working/ptest/dist/;
}
location /api/oral/ {
proxy_set_header Host qaptest.hujiang.com;
proxy_pass http://qaptest.hujiang.com/api/oral/;
}
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:9000/;
}
}