zoukankan      html  css  js  c++  java
  • nginx代理配置

    server {

        server_name 192.168.176.16;

        charset utf-8;

     

        listen 8001;

     

        # Or if running hue on https://

        ## listen 8001 ssl;

        ## ssl_certificate /path/to/ssl/cert;

        ## ssl_certificate_key /path/to/ssl/key;

     

        location / {

            proxy_pass http://cmdb;

     

            # Or if the upstream Hue instances are running behind https://

            ## proxy_pass https://hue;

        }

     

        location /static/ {

            # Uncomment to expose the static file directories.

            ## autoindex on;

     

            # If Hue was installed with packaging install:

            #alias /data/cloud/deploy/src/hue-4.1.0//build/static/;

            #alias /data/cloud/deploy/src/hue-3.9.0-cdh5.11.0/build/static/;

            alias /data/cloud/deploy/src/finup_daas_cmdb/static/;

     

            # Or if on a parcel install:

            ## /opt/cloudera/parcels/CDH/lib/hue/build/static/;

     

            expires 30d;

            add_header Cache-Control public;

        }

    }

     

    upstream cmdb {

        ip_hash;

     

        # List all the Hue instances here for high availability.

        #server 192.168.192.1:8888 max_fails=3;

        server 192.168.176.16:8080;

    }

  • 相关阅读:
    UITabBar的appear设置属性 --iOS
    UIView的分类--iOS
    创建不被渲染的image (uiimage扩展)--iOS
    引导页实现代码--iOS
    ios面试笔记
    获取项目根路径,并在其下创建一个名称为userData 的目录。
    剪切板实现拖拽代码
    绘制渐变背景代码
    iOS 定位于地理反编码
    GPUImage
  • 原文地址:https://www.cnblogs.com/haoxinchen/p/9664430.html
Copyright © 2011-2022 走看看