我的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;
        }
    }

}
时间: 2024-08-13 11:05:08

我的ngnix 配置内容的相关文章

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

SharePoint管理中心配置内容数据库 在SharePoint2010中,内容数据库是组织数据的核心.是所有网站内容信息,如文档.列表数据和Web部件属性等存储的地方.默认地,内容数据库设置的参数可能对你的组织来说不是最好的. 幸运的是,这些参数可以修改来适应你的需求.知道哪些可以修改以及修改的后果是很重要的.本文中就教你理解这些参数并作出可能的修改. 准备: 确保你是场管理员. 开始: 1. 打开管理中心--数据库--管理内容数据库. 2. 点击要修改的内容数据库.你可以修改的参数有:数据

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

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

zabbix的action配置内容的配置

zabbix的action配置内容的配置,以后有用得着的,写在这里方便复制 故障信息{TRIGGER.STATUS},服务器:{HOSTNAME1}发生: {TRIGGER.NAME}故障! 告警主机: {HOSTNAME1} 告警时间: {EVENT.DATE} {EVENT.TIME} 告警等级: {TRIGGER.SEVERITY} 告警信息: {TRIGGER.NAME} 告警项目: {TRIGGER.KEY1} 问题详情: {ITEM.NAME}:{ITEM.VALUE} 当前状态:

.NetCore获取json文件配置内容

.netcore中的数据配置及内容用了json文件代替了之前framework的xml文件,那么json中的数据该怎么获取呢?下面讲解json文件在.net core中的获取方法. 首先,新建一个.net core web应用程序,然后新建文件夹JsonFile,并在JsonFile文件夹中新建class.json文件. 右键class.json,将赋值到输出目录设置为:始终复制(非常重要). 然后在class.json中添加内容: { "ClassNum": "1"

基于spring-boot-data-jdbc的RowMapper实例的初始化配置,配置内容和实体类的代码由测试类生成

spring-boot-data-jdbc的RowMapper配置(windows10+jdk8+idea+spring-boot2.1.5)项目url:https://github.com/zhzhair/jdbcrowmapper-spring-boot.git 启动项目初始化RowMapper配置,配置内容由代码生成: 1.基于mysql的jdbcTemplate的crud:用户反馈,运营回复.忽略,多条件动态查询反馈信息等: 2.添加记录时返回自增主键,批量删除,启动项目实例化所有Row

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

手动刷新客户端配置内容 客户端项目增加依赖项 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> 客户端项目修改配置文件 增加management.endpoints.web.exposure.include=refresh,health,

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

第一步:在applicationContext.xml配置: <bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="locations"> <list> <value>classpath:/config/*.properti

Nginx演练(3)配置内容压缩

如果对HTTP熟悉的话,对request-response请求过程应该很熟悉. 比如访问"www.jd.com",一个完整页面的访问,往往会经过很多次的HTTP请求共同完成,这中间会涉及到浏览器并发数.具体片段如图 客户端请求的资源内容有多种,jpg,css,js,html等.不同文件类型,对应不同MIME_TYPE.每个文件都要通过网络传输到客户端,才能被浏览器渲染,进而展现给用户.想必大家都有给朋友发送文件的经历吧,不管是QQ传输,还是Email传送.如果一个文件过大,想节省点传输

解析apache的httpd.conf配置内容

ServerRoot /usr/local ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下. ScoreBoardFile /var/run/ht ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此