cancel
Showing results for 
Search instead for 
Did you mean: 

How To use NGINX as Reverse Proxy

c9_harlie
Member
0 Kudos
296

Hi All!

I have a site developed in UI5

accessed with the following link:

http://<SERVERNAME>:<PORT>/XMII/CM/TestProject/test.html?j_username=user&j_password=pass

but I would like to change the link to the following:

http://<SERVERNAME>:<PORT>/XMII/CM/TestProject/test.html

mention that I am logging in to MII, for this reason the credentials are in the URL.

is it possible to use ngnix reverse proxy for this

Did anyone manage to get something like this in place ?

Can somebody help me please?

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

c9_harlie
No I didn't use reverse proxy but googled little bit to find a solution

Yes, it is possible to use ngnix reverse proxy for this. You can configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying ...1.

Here is an example of how to set up NGINX as a reverse proxy2:

location / {
    proxy_pass http://localhost:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Copy