校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > 使用nginx配置訪問wgcloud的方法

使用nginx配置訪問wgcloud的方法

熱門標簽:福州企業電銷機器人排名 10086外包用的什么外呼系統 怎么找到沒有地圖標注的店 麗江真人語音電話外呼系統 打400電話怎么辦理收費 河南防封號電銷機器人是什么 宿城區電話機器人找哪家 400電話辦理介紹信 上海申請高400開頭的電話

nginx配置如下:

如http://172.17.188.27/wgcloud 

server {
        listen       80;
        server_name  localhost;
 
        #charset koi8-r;
 
        #access_log  logs/host.access.log  main;
 
        location / {
            proxy_pass http://172.17.188.27:9999;
            #root   html;
            #index  index.html index.htm;
        }
 
 
        #error_page  404              /404.html;
 
        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
 
        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}
 
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}
 
        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }

記得agent的配置文件項serverUrl的80端口也要寫上,如下

#wgcloud-server端訪問地址,端口一定要寫,即使是80也要寫哈
serverUrl=http://172.17.188.27:80

補充:nginx配置訪問wgcloud,提高訪問速度

upstream wgcloudServer {
            server 172.17.188.27:9999 weight=10;
            ip_hash;
    }
    server {
        listen       80;
        server_name  localhost;
        #charset koi8-r;
        #access_log  logs/host.access.log  main;
        location / {
            proxy_pass http://wgcloudServer;
            #root   html;
            #index  index.html index.htm;
        }
        #error_page  404              /404.html;
        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

到此這篇關于使用nginx配置訪問wgcloud的文章就介紹到這了,更多相關nginx配置wgcloud內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持腳本之家!

標簽:隴南 雞西 連云港 朝陽 遵義 運城 面試通知 荊門

巨人網絡通訊聲明:本文標題《使用nginx配置訪問wgcloud的方法》,本文關鍵詞  使用,nginx,配置,訪問,wgcloud,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《使用nginx配置訪問wgcloud的方法》相關的同類信息!
  • 本頁收集關于使用nginx配置訪問wgcloud的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 科技| 乐山市| 朝阳县| 上杭县| 东乌珠穆沁旗| 云安县| 北流市| 广南县| 通辽市| 临汾市| 杨浦区| 宁强县| 万山特区| 磐石市| 连山| 上虞市| 秦安县| 临猗县| 基隆市| 博野县| 含山县| 盘山县| 静安区| 扎赉特旗| 五大连池市| 浠水县| 巩义市| 如东县| 新竹市| 甘孜县| 响水县| 五家渠市| 遂溪县| 奎屯市| 宜兴市| 宁南县| 六枝特区| 长宁县| 邵阳市| 东阿县| 三穗县|