开发者

how to redrecit port 7777 request to 80 defaul tport

1) If I have a Oracle application server web server and is accessible on 7777 port how can i r开发者_如何学编程edirect that request to port 80. This is in Apache.


In complement to @Nik answer, if you cannot change the Web server configuration and you have an Apache which is independent of the Oracle Webserver, then make one VirtualHost in apache to be a proxy of the webserver running on 7777. Instructions you will need are:

<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>

This should be sufficienty if the Oracle webserver is not using too much hard-coded url in js and such. You will need mod_proxy to be enabled. You can maybe use 127.0.0.1:7777 as a replacement to 'theoracle_webserver:7777' If things goes bad, or you find hard coded ':7777' in the results you will have to check for mod_proxy_html rewriting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜