On Tue, Jan 26, 2016 at 2:25 AM, Alexander Pokahr <[email protected]> wrote:
> 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.
I suggest both proxy_pass and proxy_redirect should be used.
server {
listen 80;
server_name trac.mydomain.com;
location / {
proxy_pass http://trac.mydomain.com:8080;
proxy_redirect http://trac.mydomain.com:8080 /;
# ^ must strip /
}
location /login {
proxy_pass http://trac.mydomain.com:8080/login;
proxy_redirect http://trac.mydomain.com:8080 /;
auth_ldap "Please enter your credentials for issue tracker";
auth_ldap_servers myldapserver;
proxy_set_header REMOTE_USER $remote_user;
}
}
--
Jun Omae <[email protected]> (大前 潤)
--
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.