我的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_ ...
随机推荐
- PE笔记之DOS头
IMAGE_DOS_HEADER STRUCT { +0h WORD e_magic // Magic DOS signature MZ(4Dh 5Ah) DOS可执行文件标记 +2h ...
- 解決eclipse 的alt + / 快捷鍵不好用
最近公司电脑上的Eclipse没有了自动提示功能,也不是全部不提示,大多数情况下按下“alt+/”键还会产生提示,但是当我在java项目中邪main方法和syso的时候,“alt+/”则会失效,今天在 ...
- myeclipse服务器"未能创建视图:抛出意外异常。"
找到对应目录 Workspaces\.metadata\.plugins\org.eclipse.core.runtime\.settings 下的 com.genuitec.eclipse.ast. ...
- qemu相关命令使用
qemu-ga qemu-guest-agent-2.5.0-3.el7.x86_64 qemu-img qemu-img-1.5.3-105.el7_2.4.x86_64 qemu-io qemu- ...
- hdu1465 动态规划
题目 一个人写了n封不同的信及相应的n个不同的信封,他把这n封信都装错了信封,问都装错信封的装法有多少种? 解体思路 用A.B.C--表示写着n位友人名字的信封,a.b.c--表示n份相应的写好的信纸 ...
- Android中节操播放器JieCaoVideoPlayer使用
效果 使用 即便是自定义UI,或者对Library有过修改,也是这五步骤来使用播放器. 1.添加类库 compile 'cn.jzvd:jiaozivideoplayer:6.0.0' 2.添加布局 ...
- IOS view的圆角和阴影并存
记录一下这个简单但又难搞的问题,如何设置 view的圆角和阴影并存 UIView *v=[[UIView alloc]initWithFrame:CGRectMake(10, 10, 100, 100 ...
- asp.net mvc 5 利用ActionFilterAttribute实现权限过滤
关于c#属性的教程:http://www.runoob.com/csharp/csharp-attribute.html 在asp.net mvc5中,可以利用ActionFilterAttribut ...
- 交换机的工作模式:IVL和SVL
IVL(independent vlan learning)每个vlan建一个表,看起来好像有很多表,其实这里所说的表是指逻辑上的表,实际上在交换机中还是只有一个表.如果将VID相同的记 录都提取出来 ...
- 在Linux 双机下自己手动实现浮动ip技术
两台Linux服务器,一台为主机(IP:124.158.26.30)对外提供了一定的网络服务,另一台从机(IP:124.158.26.31)能提供相同的服务,但ip地址没有对外部公开客户端连接的都是1 ...