ng

user wls81 wls;
worker_processes  5;

error_log  logs/error.log;

pid        logs/nginx.pid;

events {
    use epoll;
    worker_connections  200000;
}

http {
#    include       mime.types;
    default_type  application/octet-stream;
    server_tokens off;

    sendfile        on;
    keepalive_timeout  65;

    upstream szsc-zwt-um {
       server 10.12.35.166:9060 max_fails=2 fail_timeout=5s;
    }

    upstream szsc-zwt-meeting {
       server 10.12.35.161:45231 max_fails=2 fail_timeout=5s;
    }

    upstream szsc-zwt-mtroom {
       server 10.12.35.161:9050 max_fails=2 fail_timeout=5s;
    }


    upstream szsc-zwt-public {
       server 10.12.35.160:45231 max_fails=2 fail_timeout=5s;
    }

    upstream szsc-zwt-aggregate {
       server 10.12.35.162:9030 max_fails=2 fail_timeout=5s;
    }

    upstream szsc-zwt-schedule {
       server 10.12.35.161:9040 max_fails=2 fail_timeout=5s;
    }

    upstream szsc-zwt-admin {
       server 10.12.35.163:45231 max_fails=2 fail_timeout=5s;
    }


    log_format access '$remote_addr - $remote_user [$time_local] "$request"' '$status $body_bytes_sent "$http_referer"' '"$http_user_agent" $http_x_forwarded_for';

    server {
        listen       0.0.0.0:33456;
        server_name  ng_ng_szsc-zwt-stg10;

        access_log  logs/host.access.log access;
#       include /wls/apache/appsystems/ng_ng_szsc-zwt-stg10/config/custom.conf;
        rewrite ^/f5monweb(.*) /monitor_ng/$1;

        location /peimcmeeting/ {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
            #proxy_set_header X-Forwarded-Proto https;
            proxy_redirect http:// $scheme://;
            proxy_pass  http://szsc-zwt-meeting;     
        }

        location /userplatforms/ {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
            #proxy_set_header X-Forwarded-Proto https;
            proxy_redirect http:// $scheme://;
            proxy_pass  http://szsc-zwt-um;     
        }      

        location /HMP/ {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
            #proxy_set_header X-Forwarded-Proto https;
            proxy_redirect http:// $scheme://;
            proxy_pass  http://szsc-zwt-public;
        }

        location /aggregate {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#           proxy_set_header X-Forwarded-Proto https;
            proxy_pass  http://szsc-zwt-aggregate;
        }

        location /mtroom {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#           proxy_set_header X-Forwarded-Proto https;
            proxy_pass  http://szsc-zwt-mtroom;
        }

        location /schedule {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#           proxy_set_header X-Forwarded-Proto https;
            proxy_pass  http://szsc-zwt-schedule;
        }

        location /hm-admin {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#           proxy_set_header X-Forwarded-Proto https;
            proxy_pass  http://szsc-zwt-admin;
        }



        location / {
            root   /wls/apache/appsystems/ng_ng_szsc-zwt-stg10/;
            index  index.html index.htm;
        }

#       include location_proxy.conf;

        location /monitor_ng {
            root /wls/apache;
            index f5check.htm f5check.jsp;
        }

        location /nginx_status {
           stub_status on;
           access_log  off;
           allow 127.0.0.1;
           allow 10.0.0.0/8;
           deny all;
        }

    }
#    include sslserver.conf;

}

 

### 如何下载 NG 赗源及相关工具 #### 下载 EVE-NG Pro 完整 ISO 对于 EVE-NG Pro 的完整 ISO 文件,由于其体积较大(约 8GB),推荐使用稳定且高速的网络环境进行下载。如果官方网站的速度较慢,可以尝试寻找第三方镜像站点或者通过 P2P 技术加速下载[^1]。 #### 源码获取与 FTP 上传 另一种方式是从官方提供的 URL 地址直接下载 crosstool-ng 的源码包,并将其上传至目标服务器上的 `/arm/crosstool-ng` 目录下。完成上传后,执行以下命令来解压文件: ```bash tar -xjvf crosstool-ng-1.26.0.tar.bz2 ``` 此操作会将压缩包内的内容提取出来以便后续构建交叉编译工具链[^2]。 #### 获取 IOL 镜像包 针对特定功能需求,比如在 EVE-NG 中模拟 Cisco IOS 设备,则需下载 `iol.rar` 这一专用镜像包。具体流程如下: 1. **下载**: 访问存储库页面点击链接下载 `iol.rar` 文件。 2. **解压**: 利用支持 `.rar` 格式的软件如 WinRAR 或者 7-Zip 对该存档进行解压处理。 3. **导入**: 解压完成后把所得文件移入 EVE-NG 系统相应位置,并依据官方指南完成进一步设置步骤前记得做好当前配置备份工作以防万一出现问题能够迅速恢复原状[^3]。 #### 更新 Crosstool-ng 版本信息 为了确保所使用的组件均为最新状态从而获得更佳性能表现以及安全性保障,在实际动手之前还应该考虑更新本地机器上已有的 crosstool-ng 实例至最新发行版次。这一步骤可通过重新拉取新的源代码档案再依照内部定义好的路径结构替换掉原有的版本记录达成目的即能触发自动化机制去抓取匹配的新资料加以部署应用[^4]。 ```python import os def update_crosstool_ng(): new_version_url = "https://example.com/path/to/new-crosstool-ng-version" download_command = f"wget {new_version_url}" extract_command = "tar -xjvf crosstool-ng-new-version.tar.bz2" try: os.system(download_command) os.system(extract_command) print("Crosstool-ng updated successfully.") except Exception as e: print(f"An error occurred while updating crosstool-ng: {e}") update_crosstool_ng() ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值