# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;

events {
worker_connections 1024;
}

http {
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 /var/log/nginx/access.log main;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 8888;
server_name _;
root /usr/share/nginx/html;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

location / {
root /usr/share/nginx/html;
index index2.html;
}
}

upstream newpower_browser {
server 127.0.0.1:8888;
}

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /newpowerbrowser/ {
#proxy_pass http://newpower_browser;
proxy_pass http://newpower_browser/index3.html;
}

error_page 404 /404.html;
location = /40x.html {
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}

最新文章

  1. Hadoop学习之旅二:HDFS
  2. [转] EJB 3和Spring技术体系比较
  3. JSTL的test里的逻辑判断不能有空格
  4. sql 中英文格式的时间转数字格式
  5. 关于ThinkRock中的Topics
  6. App性能优化
  7. 领域驱动设计系列(2)浅析VO、DTO、DO、PO的概念、区别和用处
  8. mave 安装本地jar包到maven库
  9. asp.net textbox控件readonly为true时,后台取值的问题
  10. oracle对大对象类型操作:blob,clob,nclob
  11. Asp.Net中使用JQueryEasyUI--善良公社项目
  12. 【Config】类库读取自己的配置文件,配置文件的扩展
  13. jquery中的globalEval()源码分析
  14. (转)MySQL中In与Exists的区别
  15. Docker 入门 第四部分: Swarms
  16. JQ_五星级评分特效
  17. Core Data 迁移与版本管理
  18. iOS入门怎样选择Swift和objective-c
  19. Zabbix的通知功能以及自定义脚本告警
  20. ubuntu库文件路径pkgconfig

热门文章

  1. 2. premiere 项目管理
  2. 优动漫PAINT提取线稿功能-亮度转化透明度
  3. IDEA实用教程(八)—— 创建JavaWeb项目
  4. Spring -11 -单例设计模式 -懒汉式/饿汉式(idea默认的)
  5. java8中的流操作
  6. Flask - 四剑客 | templates | 配置文件 | 路由系统 | CBV
  7. drf框架 - 序列化组件 | ModelSerializer (查,增,删,改)
  8. python同时取每个列表的第一个元素
  9. LightOJ - 1299 - Fantasy Cricket(DP, 数学)
  10. Mysql 查询阻塞和事物情况