#user  nobody;
worker_processes 1; #error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info; #pid logs/nginx.pid; events {
worker_connections 1024;
} http {
include mime.types;
default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on;
#tcp_nopush on; #keepalive_timeout 0;
keepalive_timeout 65; #gzip on; server {
listen 80;
server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location /html {
root html;
index index.html index.htm;
} location / {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
add_header Access-Control-Allow-Headers DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
proxy_pass http://localhost:8090/XXX-web/;
} #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 html;
} # 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 html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
} # another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias; # location / {
# root html;
# index index.html index.htm;
# }
#} # HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost; # ssl_certificate cert.pem;
# ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on; # location / {
# root html;
# index index.html index.htm;
# }
#} }
  

最新文章

  1. <meta>指定浏览器模式(browser mode)或文档模式(document mode)无效
  2. CSS 伪类 (Pseudo-classes)
  3. velocity模板入门
  4. 基于吉日嘎拉的通用权限管理WebForm版扩展:字典选项管理和缓存管理
  5. AOP动态代理解析2-代码织入入口
  6. C#Json序列化和反序列化
  7. Windows 平台下Git 服务器搭建
  8. 1034: [ZJOI2008]泡泡堂BNB - BZOJ
  9. Map迭代器
  10. WebStorm11 注册码
  11. Spring源码情操陶冶-AbstractApplicationContext#initApplicationEventMulticaster
  12. chrome_options
  13. Java并发编程面试题 Top 50 整理版
  14. 【安富莱二代示波器教程】第17章 附件B---功能扩展和改进方向
  15. 【问题】Can't load AMD 64-bit .dll on a IA 32-bit platform
  16. shell脚本学习之参数传递
  17. Unity 3D动态修改Shader状态,使物体透明等等
  18. 结对第2次作业——WordCount进阶需求
  19. ValueError: too many values to unpack tensorflow
  20. HTML 【表单】

热门文章

  1. BZOJ3668: [Noi2014]起床困难综合症(贪心 二进制)
  2. 【原创】关于skip-gram的个人理解
  3. 微信小程序navigator无法跳转情况
  4. python3.5怎么打包编译
  5. Asp.Net Core 使用Docker进行容器化部署(二)使用Nginx进行反向代理
  6. PHP (Yii2) 自定义业务异常类(可支持返回任意自己想要的类型数据)
  7. JavaSE基础复习---1---2018/9/27
  8. ArrayList底层原理
  9. 如何将h5网页改成微信网页
  10. 插件开发遇到的坑------final 型变量,编译过程被优化