Score:0

how to pass request to tomcat from nginx through https instead of http

kr flag

-1

i have setup nginx with reverse proxy to tomcat server.This is working fine. Now i want to proxy_pass over https to tomcat server.how can i do that.my nginx config below where abc.com is domain used for example only

so I just want to proxy_pass to https://127.0.0.1:8080/abc; instaed of http://127.0.0.1:8080/abc;

my backend server is tomcat running on 8080 so i want to pass all request to tomcat over https instead of http .

location /abc { proxy_pass http://127.0.0.1:8080/abc; proxy_redirect http://www.abc.com/#/login /; proxy_set_header Host www.abc.com; 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 https; client_max_body_size 150m;

ChanganAuto avatar
us flag
Does this answer your question? [How to remove nginx and re activate apache?](https://askubuntu.com/questions/470737/how-to-remove-nginx-and-re-activate-apache)
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.