nginx 80 下的一个路径 到 8888
# 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 {
}
}
}
最新文章
- Hadoop学习之旅二:HDFS
- [转] EJB 3和Spring技术体系比较
- JSTL的test里的逻辑判断不能有空格
- sql 中英文格式的时间转数字格式
- 关于ThinkRock中的Topics
- App性能优化
- 领域驱动设计系列(2)浅析VO、DTO、DO、PO的概念、区别和用处
- mave 安装本地jar包到maven库
- asp.net textbox控件readonly为true时,后台取值的问题
- oracle对大对象类型操作:blob,clob,nclob
- Asp.Net中使用JQueryEasyUI--善良公社项目
- 【Config】类库读取自己的配置文件,配置文件的扩展
- jquery中的globalEval()源码分析
- (转)MySQL中In与Exists的区别
- Docker 入门 第四部分: Swarms
- JQ_五星级评分特效
- Core Data 迁移与版本管理
- iOS入门怎样选择Swift和objective-c
- Zabbix的通知功能以及自定义脚本告警
- ubuntu库文件路径pkgconfig
热门文章
- 2. premiere 项目管理
- 优动漫PAINT提取线稿功能-亮度转化透明度
- IDEA实用教程(八)—— 创建JavaWeb项目
- Spring -11 -单例设计模式 -懒汉式/饿汉式(idea默认的)
- java8中的流操作
- Flask - 四剑客 | templates | 配置文件 | 路由系统 | CBV
- drf框架 - 序列化组件 | ModelSerializer (查,增,删,改)
- python同时取每个列表的第一个元素
- LightOJ - 1299 - Fantasy Cricket(DP, 数学)
- Mysql 查询阻塞和事物情况