6 Replies Latest reply on May 16, 2019 6:21 PM by Trevis

    Deploying ORDS without URI prefix

    Trevis

      Hi all,

       

      I have an APEX installation and I want to have ORDS deployed without any /ords or /apex or /pls at the end the URL.

       

      In the past, I used to rename ords.war to ROOT.war and everything was fine. Now, I do the same things with the new version of ORDS but it always complains "The request could not be mapped to any database. Check the request URL is correct, and that URL to database mappings have been correctly configured".

       

      If I deploy it as ords.war then I can successfully access APEX through www.servername.com/ords but I do want to access APEX through www.servername.com

       

      PS.: I am using NGINX to reverse-proxy.

       

      I know I can use

      proxy_redirect https://$host/ords/ https://$host/;

      and get redirected... but the json responses in the RESTful will include the /ords in the links for pagination and I also have to change the link whenever I copy in any ORDS Template Definition as they will include /ords even though I've redirect it to /

       

      So, how to really deploy (or map?!) the ords to the / and get everything working smoothly?