nginx.conf配置如下:

#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 8086;
server_name localhost;
#server_name 127.0.0.2;

#listen 8087;
#server_name 127.0.0.2;

#定义使用www.xx.com访问
#server_name www.222.com;

#charset koi8-r;

#access_log logs/host.access.log main;

#广西移动管家后台
#location / {
# root html/gxyd;
# index index.html index.htm;
#}

#location /gjapi {
# proxy_pass http://127.0.0.1:81;
#}

#薪酬通
location / {
root html/xct;
index index.html index.htm;
}

location /xct {
proxy_pass http://localhost:20004;
}

#location /xct {
# proxy_pass http://117.149.16.172:20004;
#}

}

}

相关路径信息:

安装路径:E:\tools\nginx-1.12.2

配置文件路径:E:\tools\nginx-1.12.2\conf\nginx.conf

静态页面路径

E:\tools\nginx-1.12.2\html\xct\static\

E:\tools\nginx-1.12.2\html\xct\index.html

最新文章

  1. 【夯实PHP基础】nginx php-fpm 输出php错误日志
  2. PAT 1072. Gas Station (30)
  3. Connecting sql server2008 through C#
  4. JSON、使用JSON进行数据交换的基础和原理
  5. HBase 专题技术收录
  6. C++primer学习笔记(三)——Chapter 5
  7. 2-sat(and,or,xor)poj3678
  8. Qt之读取配置文件
  9. C#Stimulator项目>>>C/C++ DLL的生成和调用,Windows下的多线程
  10. AES的S-BOX构造优化
  11. 友盟分享到微信 监听不执行 监听只执行onStart,(onResult,onError,onCancel 不执行)
  12. JAVAOO零碎--内存叠加
  13. Mysql安装和登录相关操作
  14. logstash常用插件解析
  15. Ext.net 的锁定列要集中放到前面
  16. jquery选择器和属性
  17. 2.2.9静态同步synchronized方法与synchronized(class)代码块
  18. SVN OPS发布总结
  19. CodeForces762A
  20. elixir 模块

热门文章

  1. cocos2d 中使用jni Java 调用 C++ 方法
  2. Struts2初学 Struts2在Action获取内置对象request,session,application(即ServletContext)
  3. 219. Insert Node in Sorted Linked List【Naive】
  4. 解决在eclipse中配置Tomcat时,出现"Cannot create a server using the selected type"的错误
  5. js 開始时间,当前时间,结束时间的比較
  6. Hadoop中MapReduce计算框架以及HDFS可以干点啥
  7. am335x 内核频率 ddr3频率 电压调整
  8. Spring.Net框架二:配置Spring.Net框架环境
  9. Vim快捷键操作命令大全
  10. js学习笔记26----事件冒泡,事件捕获