我的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_ ...
随机推荐
- Codevs 1993 草地排水
1993 草地排水 时间限制: 2 s 空间限制: 256000 KB 题目等级 : 钻石 Diamond 题目描述 Description 在农夫约翰的农场上,每逢下雨,Bessie最喜欢的三叶草地 ...
- SQL触发器的使用及语法
原文发布时间为:2010-08-07 -- 来源于本人的百度文章 [由搬家工具导入] ===以下转qsfwy.javaeye.com/blog/424789定义: 何为触发器?在SQL Server里 ...
- 排名次SQL语句【名次可重复时】
原文发布时间为:2008-10-26 -- 来源于本人的百度文章 [由搬家工具导入] 功能实现 名次可重复时,比如第一名有两个。。。 select *,(select count(distin ...
- ubuntu 15.10 64bit 下 steam无法启动
首先查看steam日志,在/tmp/dumps/下,以“用户名_output.txt”命名. $ cat /tmp/dumps/liuxu_output.txt Running Steam on ub ...
- 长安大学第四届“迎新杯”程序设计竞赛 H 圣诞节糖果【二分】
时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld 题目描述 圣诞节临近,彩虹岛的黑心商人
- z-index 基础详解
关于z-index网上其实有不少博文,写得也不错,不过有些帖子比较旧,而IE也已经更新到了IE11了,所以还是重新总结一下.由于 z-index 的属性表现和层级有关,有些特点在某些层级下才表现出来, ...
- 基于Bootstrap的页面排版知识
标题: Bootstrap定义了所有HTML的标题样式,<h1>...<h6>标签或者在标签内加入.h1 class等可以得到一样的效果 效果: 副标题: 标签<smal ...
- 一种全新的自动调用ajax方法
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...
- SilverLight-DataBinding-DataTemplates: 三、数据绑定 DataTemplates模板的使用(求助,没有到达实例效果,求高人指点迷津)
ylbtech-SilverLight-DataBinding-DataTemplates: 三.数据绑定 DataTemplates模板的使用 1.A, Data Templates Intro(数 ...
- linux系统故障分析与排查
在处理Linux系统出现的各种故障时,故障的症状是最先发现的,而导致这以故障的原因才是最终排除故障的关键.熟悉Linux系统的日志管理,了解常见故障的分析与解决办法,将有助于管理员快速定位故障点.“对 ...