Score:0

nginx reverse proxy for oracle apex cloud application

us flag

I would like the url below to be the proxy for my oracle apex application url which is very long and not friendly.

https://myapp.mydomain.com --> proxy for https://verylongstring.oraclecloudapps.com/ords/r/myws/myapp/

The config that I have is shown below:

server { server_name myapp.mydomain.com;

   location / {     
     proxy_pass https://verylongstring.oraclecloudapps.com/ords/r/myws/myapp$request_uri;
     proxy_set_header Host $host;
     proxy_set_header Origin "";
     proxy_set_header X-Forwarded-Host $host:$server_port;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;
     proxy_connect_timeout   600;
     proxy_send_timeout      600;
     proxy_read_timeout      600;
     send_timeout            600;
     proxy_redirect  off;
   }

}

The above didnt work. I got 404 Not Found. Can someone help me?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.