iPortal配置内置导航
生活随笔
收集整理的這篇文章主要介紹了
iPortal配置内置导航
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
作者:yx
文章目錄
- 前言
- 一、下載nginx
- 二、啟動nginx
- 三、配置nginx
- 四、配置iportal
前言
iportal支持站點(diǎn)定制,其中包括導(dǎo)航設(shè)置,該導(dǎo)航設(shè)置可以是直接跳轉(zhuǎn)另一個頁面,也可以設(shè)置為內(nèi)置導(dǎo)航,啟用內(nèi)置導(dǎo)航時,需要反向代理,讓其同域,不然會報以下錯誤,接下來就介紹相關(guān)配置
一、下載nginx
鏈接:https://pan.baidu.com/s/1Q8SeNvJULY9Hm3HB2yGJBA
提取碼:j4st
二、啟動nginx
退出 nginx 命令如下:
nginx –s quit打開任務(wù)管理器,查看 nginx 進(jìn)程是否已啟動。
訪問 http://127.0.0.1 或 http://localhost 時,頁面出現(xiàn)“Welcome to nginx!”字樣,則代表 nginx 已成功啟動。
三、配置nginx
打開【nginx 安裝路徑】\conf\nginx.conf 文件,修改 http 節(jié)點(diǎn)下的 server 節(jié)點(diǎn)內(nèi)容如下:
server {listen 8099;server_name 172.16.13.37;location /iserver {root html;index index.html index.htm;proxy_pass http://localhost:8090;proxy_redirect off;proxy_buffering off;proxy_set_header Host $host:$server_port;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}location /iportal {root html;index index.html index.htm;proxy_pass http://localhost:8190;proxy_redirect off;proxy_buffering off;proxy_set_header Host $host:$server_port;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}#error_page 500 502 503 504 /50x.html;location = /50x.html {root html;}}- listen:用于設(shè)置代理后的服務(wù)監(jiān)聽端口,默認(rèn)為 80,建議不要使用默認(rèn)端口,且端口不能是已占用的端口。
- server_name:用于設(shè)置代理后的服務(wù)器名稱,一般使用代理服務(wù)器的域名。
- proxy_pass:用于設(shè)置需要轉(zhuǎn)發(fā)的 GIS 服務(wù)地址,可以是 IP 地址形式,也可以是域名形式。
四、配置iportal
“管理”–>“站點(diǎn)定制”–>“導(dǎo)航設(shè)置”
注:當(dāng)iportal是以localhost形式訪問時,這里iserver的地址也要寫成localhost,如果以真實(shí)ip訪問iportal,則這里也需要填寫真是ip
至此配置完成
總結(jié)
以上是生活随笔為你收集整理的iPortal配置内置导航的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OrCAD中DRC的使用简要说明
- 下一篇: 区块链技术落地应用医疗服务平台搭建