server {
listen 8000;
server_name somename alias another.alias;
location /a {
add_header 'Access-Control-Allow-Origin' '*';
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,Content-Range,Range';
add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_redirect off; proxy_pass https://www.oschina.net/news/widgets/_news_index_all_list?p=2&type=ajax;
}
}

  

server {        listen       8000;        server_name  somename  alias  another.alias;            location /a {    add_header 'Access-Control-Allow-Origin' '*';            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,Content-Range,Range';            add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';add_header 'Access-Control-Allow-Credentials' 'true';             proxy_redirect          off;                        proxy_pass https://www.oschina.net/news/widgets/_news_index_all_list?p=2&type=ajax;         }    }

最新文章

  1. Bootstrap WPF Style,Bootstrap风格的WPF样式
  2. PHP程序员的技术成长规划
  3. setAttribute,,,getAttribute,,,,
  4. asp.net解决高并发的方案.[转]
  5. Flume1.5.0的安装、部署、简单应用(含伪分布式、与hadoop2.2.0、hbase0.96的案例)
  6. SIFT算法详解(转)
  7. CodeForces 471C MUH and House of Cards
  8. JavaScript数据结构——栈和队列
  9. hdu 2516(斐波拉切博弈)
  10. webSphere提示SSL证书过期,解决方法
  11. C#中的预处理器指令
  12. [codevs]失恋28天题目系列
  13. PHP要注意的14个问题
  14. MySQL:Error : Tablespace for table '`database`.`temp`' exists. Please DISCARD the tablespace before IMPORT.解决办法
  15. WebService两种调用方法
  16. 教你如何用 lib-flexible 实现移动端H5页面适配
  17. input子系统学习笔记六 按键驱动实例分析下【转】
  18. Java语言基础问题
  19. aps.net webform框架下页面服务器端控件和html控件用法
  20. oracle安装后sqlnet.ora文件

热门文章

  1. 【转】Iconfont
  2. Junit测试集锦
  3. 记 thoughtworks 的一次面试
  4. C# 调用第三方DLL缓冲区溢出导致的异常
  5. Linux Mini 安装 VMware Tools
  6. Hadoop 常用命令之 HDFS命令
  7. (转)Spring提供的CharacterEncoding和OpenSessionInView功能
  8. mybatis获取存储过程返回结果
  9. select2宽度占比100%,导致无法实现浮动效果
  10. while循环(break、continue)