I'm working with APEX 22.1.0 and i'm trying to get one application throuhg a reverse NGINX proxy. I can get all APEX framework work fine but when a run an application i can't go further from de login screen with the message “Your session has ended”. In my web, under the http://<my-web>/ejemplo, this is my configuration file:
location /**ejemplo**/ {
# this is the address and port of the ORDS installation
proxy\_pass http://\<my-local-ip>:8181/ords/;
# set Origin to blank to avoid Chrome problems with CORS
proxy\_set\_header Origin "" ;
# pass along some header variables with the public host name/port/and so on
proxy\_set\_header Host $host;
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;
# this reverse proxies any "location" headers being passed in the response
proxy\_redirect http://$host/ords/ http://$host/ejemplo/;
# also tell cookies their public path
proxy\_cookie\_path /ords/ /ejemplo/;
# reverse proxy links included in response (ie from ORDS webservice)
sub\_filter\_types application/json ;
sub\_filter http://$host/ords/ http://$host/ejemplo/;
sub\_filter\_once off;
}
location /ords {
proxy\_set\_header Host $host;
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\_set\_header Origin "";
proxy\_pass http://\<my-local-ip>:8181/ords;
proxy\_http\_version 1.1;
}
location /i/ {
proxy\_pass http://\<my-local-ip>:8181/i/;
proxy\_set\_header Origin "" ;
proxy\_set\_header Host $host;
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;
}
This make APEX framework works fine but NOT one particular application when I do run.
Any idea would be wellcome !! Thanks in advance.