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

主頁 > 知識庫 > 使用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的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 海淀区| 万年县| 应城市| 中卫市| 淮滨县| 丰台区| 九江市| 东城区| 青岛市| 洪泽县| 榆社县| 明星| 田林县| 温州市| 新闻| 岳西县| 浦江县| 乐昌市| 卢湾区| 田阳县| 板桥市| 太湖县| 广饶县| 比如县| 五原县| 元江| 英超| 平乐县| 会同县| 淮滨县| 宣化县| 周至县| 卢氏县| 乌拉特后旗| 兴业县| 阳春市| 大连市| 芜湖县| 招远市| 南汇区| 龙游县|