nginx简单的nginx.conf配置
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
最新文章
- 【夯实PHP基础】nginx php-fpm 输出php错误日志
- PAT 1072. Gas Station (30)
- Connecting sql server2008 through C#
- JSON、使用JSON进行数据交换的基础和原理
- HBase 专题技术收录
- C++primer学习笔记(三)——Chapter 5
- 2-sat(and,or,xor)poj3678
- Qt之读取配置文件
- C#Stimulator项目>;>;>;C/C++ DLL的生成和调用,Windows下的多线程
- AES的S-BOX构造优化
- 友盟分享到微信 监听不执行 监听只执行onStart,(onResult,onError,onCancel 不执行)
- JAVAOO零碎--内存叠加
- Mysql安装和登录相关操作
- logstash常用插件解析
- Ext.net 的锁定列要集中放到前面
- jquery选择器和属性
- 2.2.9静态同步synchronized方法与synchronized(class)代码块
- SVN OPS发布总结
- CodeForces762A
- elixir 模块
热门文章
- cocos2d 中使用jni Java 调用 C++ 方法
- Struts2初学 Struts2在Action获取内置对象request,session,application(即ServletContext)
- 219. Insert Node in Sorted Linked List【Naive】
- 解决在eclipse中配置Tomcat时,出现";Cannot create a server using the selected type";的错误
- js 開始时间,当前时间,结束时间的比較
- Hadoop中MapReduce计算框架以及HDFS可以干点啥
- am335x 内核频率 ddr3频率 电压调整
- Spring.Net框架二:配置Spring.Net框架环境
- Vim快捷键操作命令大全
- js学习笔记26----事件冒泡,事件捕获