windows下配置nginx反向代理

windows下配置nginx反向代理

ID:37640541

大小:973.91 KB

页数:13页

时间:2019-05-27

windows下配置nginx反向代理_第1页
windows下配置nginx反向代理_第2页
windows下配置nginx反向代理_第3页
windows下配置nginx反向代理_第4页
windows下配置nginx反向代理_第5页
资源描述:

《windows下配置nginx反向代理》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、资源分享编程语言web前端web服务器操作系统数据库应用柳明的博客资源在于分享,技术在于交流0上午好!2013年3月21日星期四手机充值手机号:归属地:运营商、地区面值:100元50元其他30元售价:98元-99.6元现在的位置:首页>web服务器>nginx>正文RSS小中大上篇下篇windows下配置nginx反向代理2012年10月13日nginx,web服务器,windows,操作系统共4021字评论数2被围观1,571views+最近,在朋友的服务器(windows操作系统)上面搭建了一个nginx服务,用nginx反向代理到apache服务器。我看了

2、一下,现在网上大部分都是关于nginx在linux服务器上面的配置问题,很少有关于windows操作下面配置nginx的相关资料,所以,我今天就把我之前的在windows下面搭建nginx服务的配置方法贴出来,供大家参考:1,编辑C:ginxconfginx.conf添加修改以下内容:1.#usernobody;2.worker_processes1;3.error_loglogs/error.log;4.#error_loglogs/error.lognotice;5.#error_loglogs/error.loginfo;6.pidlogs/ng

3、inx.pid;7.events{8.worker_connections64;9.}10.http{11.includemime.types;12.default_typeapplication/octet-stream;13.log_formatmain'$remote_addr-$remote_user[$time_local]$request'14.#'"$status"$body_bytes_sent"$http_referer"'15.#'"$http_user_agent""$http_x_forwarded_for"';16.access_log

4、logs/access.logmain;17.sendfileon;18.#tcp_nopushon;19.#keepalive_timeout0;20.keepalive_timeout65;21.#设定请求缓冲22.client_header_buffer_size1k;23.large_client_header_buffers44k;24.#开启gzip模块25.gzipon;26.gzip_min_length1100;27.gzip_buffers48k;28.gzip_typestext/plain;29.output_buffers132k;30

5、.postpone_output1460;31.32.upstreamwww.domain1.com{33.server192.168.30.228:8001;34.}35.upstreamwww.domain2.com{36.server192.168.30.221:8222;37.}38.upstreamwww.domain3.com{39.server192.168.30.228:8003;40.}41.server{42.listen80;43.server_namewww.domain3.com;44.#charsetkoi8-r;45.access_

6、loglogs/host.access.logmain;46.location/{47.#roothtml;48.#indexindex.htmlindex.htm;49.proxy_passhttp://www.domain3.com;50.includeproxy.conf;51.}52.}53.server{54.listen80;55.server_namewww.domain2.com;56.#charsetkoi8-r;57.access_loglogs/host.access.logmain;58.location/{59.#roothtml;60

7、.#indexindex.htmlindex.htm;61.proxy_passhttp://www.domain2.com;62.includeproxy.conf;63.}64.}65.server{66.listen80;67.server_namewww.domain1.com;68.#charsetkoi8-r;69.access_loglogs/host.access.logmain;70.location/{71.#roothtml;72.#indexindex.htmlindex.htm;73.proxy_passhttp://www.domai

8、n1.com;74.in

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。