Score:0

Migrating reverse proxy settings from Nginx to Apache2

cn flag

until now I have been using Nginx but due to some reasons I have to switch to Apache2. I am not a sys admin so if more info is needed, just ask

I am unable to migrate 1 simple proxy settings to Apache2:

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

Especially how to migrate header X-Forwarded-For, because I do not know what could be the equivalent in Apache2

djdomi avatar
za flag
why would you go away from nginx?
cn flag
thats not up to me but on other people around me. I can not do anything with it.
jp flag
`X-Forwarded-For` is added automatically by Apache `mod_proxy`.
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.