2011-04-27 87 views

回答

0

在補充@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重寫。

相關問題