我的ngnix 配置内容
#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; upstream tomcat-cos { #server 172.16.17.211;
#server 172.16.17.222;
server 172.16.18.18;
#server 172.16.17.1
} server {
listen 81;
server_name 127.0.0.1; #charset koi8-r; #access_log logs/host.access.log main;
error_page 405 =200;
location / {
#root "proxy_pass http://172.16.17.222";
#root "D:/udf/trunk/10-udf-www/11-udf-ecw-www/src";
#root "D:/udf/branches/aliy-release/10-udf-www/11-udf-ecw-www/src";
root "D:/udfex/udfex-website-repo/ecw-website/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location ^~ /udf-img/ {
proxy_pass http://udf-ecw-test.oss-cn-beijing.aliyuncs.com;
} location /udf-wechat{
#alias "D:/udf/trunk/10-udf-www/15-udf-wap-www/www";
alias "D:/udf/branches/release-wechat/10-udf-www/15-udf-wap-www/www";
index index.html;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
try_files $uri $uri/ /index.html =404;
} location /03-udf-oso {
proxy_pass http://tomcat-cos;
} location /03-udf-cos{
#proxy_pass http://tomcat-cos;
#proxy_pass http://test.cos.udfex.com;
proxy_pass http://192.168.8.181:81;
} location /05-udf-ecw {
#proxy_pass http://tomcat-cos;
#proxy_pass http://www.udfex.com;
proxy_pass http://test.www.udfex.com;
} location /udf-cos {
alias "D:/udfexpress/10-udf-www/12-udf-cos-www/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location /udf-oso{
alias "D:/udfexpress/10-udf-www/14-udf-oso-www/src";
#alias "D:/06.ProjectCode/udfexpress/trunk/10-udf-www/14-udf-oso-www";
index index.html index.htm;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
try_files $uri $uri/ /index.html =404;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
} server {
listen 82;
server_name 127.0.0.2;
error_page 405 =200;
location / {
root "F:/udfex-website/udfex-website/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
} location /05-udf-ecw {
proxy_pass http://test.www.udfex.com;
#proxy_pass 192.168.8.89;
}
} server {
listen 83;
server_name 127.0.0.3;
error_page 405 =200;
location / {
root "D:\udfex-cos-website\cos-website\src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
} location /03-udf-cos {
proxy_pass http://test.cos.udfex.com;
#proxy_pass http://192.168.8.181:81;
}
} server {
listen 84;
server_name 127.0.0.4;
error_page 405 =200;
location / {
root "D:\bbs\bbs-website\src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
proxy_pass http://bbs.udfex.com;
}
} }
我的ngnix 配置内容的更多相关文章
- 修改tnsnames.ora文件中配置内容中的连接别名后,连接超时解决办法
1.tnsnames.ora文件中配置内容中的连接别名:由upaydb修改为IP地址 2.连接超时 定位原因: PLSQL登录界面的数据库列表就是读的tnsname.ora中连接的别名,这个文件中连接 ...
- spring 部分配置内容备忘
1.spring定时器简单配置: <bean name="taskJob" class="com.netcloud.mail.util.TaskJob"& ...
- 微服务配置内容《网上copy》=========》如何创建一个高可用的服务注册中心
前言:首先要知道什么是一个高可用的服务注册中心,基于spring boot建成的服务注册中心是一个单节点的服务注册中心,这样一旦发生了故障,那么整个服务就会瘫痪,所以我们需要一个高可用的服务注册中心, ...
- .NetCore获取json文件配置内容
.netcore中的数据配置及内容用了json文件代替了之前framework的xml文件,那么json中的数据该怎么获取呢?下面讲解json文件在.net core中的获取方法. 首先,新建一个.n ...
- SharePoint管理中心配置内容数据库
SharePoint管理中心配置内容数据库 在SharePoint2010中,内容数据库是组织数据的核心. 是全部站点内容信息,如文档.列表数据和Web部件属性等存储的地方.默认地,内 ...
- 手动刷新客户端配置内容(Spring Cloud Config)
手动刷新客户端配置内容 客户端项目增加依赖项 <dependency> <groupId>org.springframework.boot</groupId> &l ...
- log4net简单配置内容
首先将log4net.dll下载来,添加到项目引用中: 在assembly文件最后面加(其实没关系的): [assembly: log4net.Config.XmlConfigurator(Confi ...
- Spring MVC 通过@Value注解读取.properties配置内容
第一步:在applicationContext.xml配置: <bean id="configProperties" class="org.springframew ...
- Redis 配置内容总结
命令 Redis 的配置文件位于 Redis 安装目录下,文件名为 redis.conf. 你可以通过 CONFIG 命令查看或设置配置项. (1)config get config_setting_ ...
随机推荐
- MYSQL常用命令——【转】
MYSQL常用命令 1.导出整个数据库mysqldump -u 用户名 -p --default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin ...
- js 字符串长度截取
<script> function cutstr(str, len) { var temp, icount = 0, patrn = /[^\x00-\xff]/, strre = &qu ...
- JavaScript日历控件!JS兼容IE6.7.FF.可挡住下拉控件
原文发布时间为:2009-08-22 -- 来源于本人的百度文章 [由搬家工具导入] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tran ...
- case when then else 详解
原文发布时间为:2008-10-15 -- 来源于本人的百度文章 [由搬家工具导入] sql语句判断方法之一 Case具有两种格式。简单Case函数和Case搜索函数。 --简单Case函数 CASE ...
- [LeetCode] Rotate List 单项链表旋转
Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1 ...
- eclipse去除所有调试断点 (转)
今天调试的时候发现之前加了太多断点,想去除所有断点,才想起来一直都没有使用过这个功能,放狗搜了一下,很快找到,记录一下. 方法一: 在工作界面,点window菜单栏,选中Preperences,在Ge ...
- 移动GIS技术在城市信息采集中的应用
1 引言 随着移动平板电脑和手机(以下简称移动终端)在软硬件上的更新换代,和3G.4G通讯网络的升级,传统测绘和和数据服务方式正在发生巨大变化.以城市中的外业踏勘和信息采集为例,移动终端正成为主要的外 ...
- Rust-HayStack
src/main.rs extern crate multipart; extern crate iron; extern crate time; //image converter extern c ...
- Java IO 学习(三)缓冲IO / 直接IO / 内存映射
缓冲IO 在介绍缓冲IO之前需要先了解一下常用的机械硬盘的原理与特点 一个机械硬盘中装有多个盘片 每个盘片上有多个同心圆(磁道) 每个同心圆又由多个弧(扇区)组成,每个弧上都记录了等量的数据(比方说5 ...
- Linux Performance Observability Tools