0
1)如果我有一個Oracle應用服務器Web服務器並且可以在7777端口上訪問,那麼我如何將該請求重定向到端口80.這是在Apache中。如何重新將端口7777請求重置爲80 defaul tport
1)如果我有一個Oracle應用服務器Web服務器並且可以在7777端口上訪問,那麼我如何將該請求重定向到端口80.這是在Apache中。如何重新將端口7777請求重置爲80 defaul tport
在補充@Nik回答,如果您不能更改Web服務器的配置,你有一個Apache獨立於甲骨文的網絡服務器,然後在Apache中做出一個虛擬主機是在7777上運行的Web服務器的代理你需要的指令是:
<VirtualHost *:80>
ServerName my_dns_alias_for_this_virtualhost.net
ServerAlias another_alias.net
<IfModule mod_proxy.c>
#
# no open proxy
ProxyRequests off
<Proxy *>
Order allow,deny
Allow from all # or here specifiy allowed IPs
</Proxy>
ProxyTimeout 1200
#exceptions first if any
ProxyPass /server-status !
#Proxy rewriting
ProxyPass / http://theoracle_webserver:7777/
ProxyPassReverse/ http://theoracle_webserver:7777/
</IfModule>
</VirtualHost>
如果Oracle Web服務器沒有在js和使用等太多硬編碼的網址這應該是sufficienty。您需要啓用mod_proxy。你也許可以使用127.0.0.1:7777作爲'theoracle_webserver:7777'的替代品如果情況變糟,或者你在結果中發現硬編碼':7777',你將不得不檢查mod_proxy_html重寫。