Dear Jun Omae,
thanks for your reply, but I use proxy_pass and not proxy_redirect.
The directive works fine for other build tools (nexus, jenkins)
and also for all areas of trac, except /login and /logout.
Kind regards,
Alex
Am 25.01.2016 um 18:20 schrieb Jun Omae:
On Tue, Jan 26, 2016 at 1:40 AM, Alexander Pokahr <[email protected]> wrote:
Hi Ryan,
the patch works!
I can now authenticate in nginx and trac detects the authenticated user as
expected.
Unfortunately, I still have some issues:
First, for some reason, the browser receives a location header like this:
Location: http://trac.mydomain.com:8080
The public page should rather be https://trac.mydomain.com/
After logging in, I can go back to the correct page and browse the page
fine.
The redirect only happens on '/login' and '/logout'.
I guess your Nginx configuration has the problems. Try like the following.
proxy_redirect http://trac.mydomain.com:8080/ /;
See also
- http://stackoverflow.com/a/20311241
- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.