2

Any incoming request on (x.x.x.x.x)--> redirect to x.x.x.x.auth.domain.edu -- > that authenticates a user and redirects back to x.x.x.x server. (With a cookie set, In my case it is EZproxy server doing the cookie setting)

I have tried rewriting the request url and also using proxy_pass booth resulting in looping error error (from browser).

I must be missing some basic header or something i am not able to get what since yesterday morning.
Any suggestions regarding how the config must be?

Anup
  • 121
  • 3

1 Answers1

0

Your root directive has two problems:

  1. It uses a relative path. When a relative path is used, it's relative to a default directory compiled into nginx. Do you know which one that is? It's best to specify absolute paths.
  2. It is in the wrong place. The root directive should be specified in the server block. This is one of the most common nginx misconfigurations.
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940