This discussion is archived
2 Replies Latest reply: Apr 5, 2013 4:50 AM by MarkWagoner RSS

alias instead of hostname:portnumber

590705 Newbie
Currently Being Moderated
Hi

We used to give the url as "http://hostname:8080/apex/f?p=ApplicationId" to run the oracle apex applications.

Is there any way to use "sitename.com" instead of "hostname:8080/apex/f?p=ApplicationId" in the Url, like normal websites

Thanks in advance

Srinivas S
  • 1. Re: alias instead of hostname:portnumber
    MarkWagoner Newbie
    Currently Being Moderated
    First you would have to run your listener on port 80, since that is where the browser will try to go by default. Second, you need to configure your DNS server to map the server names to the proper IP adddress.

    Neither of these are APEX questions, by the way.
  • 2. Re: alias instead of hostname:portnumber
    Bas de Klerk Pro
    Currently Being Moderated
    Hi,

    you have to configure your apex listener, epg or other weblistener to port 80.
    Based on the URL you're posting it seems you're using the EPG.

    For an EPG on windows this is done via the statement below which should be run as sys on your database, on Linux you have to do some extra tricks since port 80 cannot be used by oracle by default ( google for the tick to do this ) :
      exec dbms_xdb.sethttpport(80);
    If you ftp to your apex installation ( enable ftp port via exec dbms_xdb.setftpport(21) ) and edit the index.htm(l) file in the root folder you can redirect this page to your standard landing page. So you can start with http://hostname and it will redirect you to http://hostname:8080/apex/f?p=ApplicationId

    Another way of doing this outside of apex is to put an apache server in front as a reverse proxy, but if you just want to redirect the solution above should be sufficient and can be done from inside oracle/apex

    Regards
    Bas

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points