#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 配置内容的更多相关文章

  1. 修改tnsnames.ora文件中配置内容中的连接别名后,连接超时解决办法

    1.tnsnames.ora文件中配置内容中的连接别名:由upaydb修改为IP地址 2.连接超时 定位原因: PLSQL登录界面的数据库列表就是读的tnsname.ora中连接的别名,这个文件中连接 ...

  2. spring 部分配置内容备忘

    1.spring定时器简单配置: <bean name="taskJob" class="com.netcloud.mail.util.TaskJob"& ...

  3. 微服务配置内容《网上copy》=========》如何创建一个高可用的服务注册中心

    前言:首先要知道什么是一个高可用的服务注册中心,基于spring boot建成的服务注册中心是一个单节点的服务注册中心,这样一旦发生了故障,那么整个服务就会瘫痪,所以我们需要一个高可用的服务注册中心, ...

  4. .NetCore获取json文件配置内容

    .netcore中的数据配置及内容用了json文件代替了之前framework的xml文件,那么json中的数据该怎么获取呢?下面讲解json文件在.net core中的获取方法. 首先,新建一个.n ...

  5. SharePoint管理中心配置内容数据库

    SharePoint管理中心配置内容数据库         在SharePoint2010中,内容数据库是组织数据的核心. 是全部站点内容信息,如文档.列表数据和Web部件属性等存储的地方.默认地,内 ...

  6. 手动刷新客户端配置内容(Spring Cloud Config)

    手动刷新客户端配置内容 客户端项目增加依赖项 <dependency> <groupId>org.springframework.boot</groupId> &l ...

  7. log4net简单配置内容

    首先将log4net.dll下载来,添加到项目引用中: 在assembly文件最后面加(其实没关系的): [assembly: log4net.Config.XmlConfigurator(Confi ...

  8. Spring MVC 通过@Value注解读取.properties配置内容

    第一步:在applicationContext.xml配置: <bean id="configProperties" class="org.springframew ...

  9. Redis 配置内容总结

    命令 Redis 的配置文件位于 Redis 安装目录下,文件名为 redis.conf. 你可以通过 CONFIG 命令查看或设置配置项. (1)config get config_setting_ ...

随机推荐

  1. [ARC082F] Sandglass(线段树)

    Description 有一个沙漏由两个上下相通玻璃球 \(A\) 和 \(B\) 构成,这两个玻璃球都含有一定量的沙子,我们暂且假定 \(AB\) 中位于上方的玻璃球的为 \(U\),下方的玻璃球为 ...

  2. 【BZOJ4300】绝世好题(二进制,DP)

    题意: n<=100000,ai<=2*10^9 思路:按二进制逐位考虑,只要有至少1位取and后为1就可以接下去 设dp[i]为第i位取and之后为1的最长的序列长度,意会一下 #inc ...

  3. 在SQL Server中使用NewID()随机取得某行

    原文发布时间为:2008-09-24 -- 来源于本人的百度文章 [由搬家工具导入] 这里提供了另外一个更有用的函数:NewID(),它返回一个GUID(全局唯一标志符) select top 10 ...

  4. Jobedin外企招聘网:6个要点不能不知道(转载)

    又到一年跳槽季,无数职场人士都在蠢蠢欲动,在工作之余,寻找更好的工作. Jobedin外企招聘网,特别提醒:年末跳槽,一定要在拿到新公司的Offer后,才能向现公司提出辞职.不然新工作没找到,却可能丢 ...

  5. win8.1 uefi引导

    装上win8后,感觉似乎开机比win7要慢一些,但实际掐表又发现几乎无差别,但是看网上别人都说 win8可以10秒以内开机,然后又说他们是采用uefi引导,而不是bios引导,那我也试试吧,如下: 1 ...

  6. 关于Struts2中param的作用

    1.页面传参与配置传参的区别: 如果页面Form表单的参数在Action类中有相应的setter方法,则会优先取页面Form表单传过来的值,如果页面没有该属性同名的参数,则会从配置文件中取同名的参数值 ...

  7. EOJ Monthly 2017.12 A B C D

    // 因为是中文题面就偷一次懒不写题意啦QAQ // 各种大作业然后又要期末还不知道什么时候能补题QAQ A. 唐纳德先生和假骰子 直接模拟 #include <bits/stdc++.h> ...

  8. Javascript中函数声明与函数表达式的不同

    定义函数的方式有两种:一种是函数声明,另一种是函数表达式. 函数声明的语法如下: function functionName(arg0,arg1,arg2){ //函数体 } 函数表达式的语法如下: ...

  9. 16Aspx.com-将15位身份证转换成18位

    //********************************************************************************* //将15位身份证转换成18位时 ...

  10. 洛谷 P1865 A % B Problem[筛素数/前缀和思想/区间质数个数]

    题目描述 区间质数个数 输入输出格式 输入格式: 一行两个整数 询问次数n,范围m 接下来n行,每行两个整数 l,r 表示区间 输出格式: 对于每次询问输出个数 t,如l或r∉[1,m]输出 Cros ...