

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
50 messages in ru.sysoev.nginxRe: How to redirect back to domain na...| From | Sent On | Attachments |
|---|---|---|
| Aleksandar Lazic | Apr 20, 2008 2:34 pm | |
| Bedros Hanounik | Apr 20, 2008 3:21 pm | |
| Manlio Perillo | Apr 20, 2008 3:26 pm | |
| Cliff Wells | Apr 20, 2008 3:34 pm | |
| Cliff Wells | Apr 20, 2008 3:38 pm | |
| Aleksandar Lazic | Apr 21, 2008 12:46 am | |
| Aleksandar Lazic | Apr 21, 2008 12:50 am | |
| Aleksandar Lazic | Apr 21, 2008 1:27 am | |
| Aleksandar Lazic | Apr 21, 2008 1:29 am | |
| Kiril Angov | Apr 21, 2008 7:47 pm | |
| Kiril Angov | Apr 21, 2008 7:48 pm | |
| Kiril Angov | Apr 21, 2008 7:57 pm | |
| Igor Sysoev | Apr 21, 2008 11:13 pm | |
| Marcin Kasperski | Apr 22, 2008 1:18 am | |
| Manlio Perillo | Apr 22, 2008 3:23 am | |
| Igor Sysoev | Apr 22, 2008 3:38 am | |
| Manlio Perillo | Apr 22, 2008 3:54 am | |
| Manlio Perillo | Apr 22, 2008 4:07 am | |
| Igor Sysoev | Apr 22, 2008 4:18 am | |
| Marcin Kasperski | Apr 22, 2008 5:05 am | |
| Manlio Perillo | Apr 22, 2008 6:18 am | |
| Manlio Perillo | Apr 22, 2008 6:50 am | |
| Igor Sysoev | Apr 22, 2008 7:10 am | |
| Manlio Perillo | Apr 22, 2008 7:30 am | |
| Kiril Angov | Apr 22, 2008 7:42 am | |
| Cliff Wells | Apr 22, 2008 12:24 pm | |
| Manlio Perillo | Apr 22, 2008 1:25 pm | |
| Manlio Perillo | Apr 22, 2008 1:27 pm | |
| Francisco Valladolid | Apr 22, 2008 2:12 pm | |
| Cliff Wells | Apr 22, 2008 2:43 pm | |
| Sean Allen | Apr 22, 2008 3:10 pm | |
| Jay Reitz | Apr 22, 2008 10:13 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:06 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:09 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:18 pm | |
| Mike Crawford | Apr 25, 2008 2:02 pm | |
| Igor Sysoev | Apr 25, 2008 10:46 pm | |
| Aleksandar Lazic | Apr 25, 2008 10:56 pm | |
| Igor Sysoev | Apr 25, 2008 11:53 pm | |
| Manlio Perillo | Apr 26, 2008 2:59 am | |
| Igor Sysoev | Apr 26, 2008 3:22 am | |
| Manlio Perillo | Apr 26, 2008 3:45 am | |
| Manlio Perillo | Apr 26, 2008 4:24 am | |
| Manlio Perillo | Apr 26, 2008 7:37 am | .c |
| Manlio Perillo | Apr 26, 2008 8:28 am | |
| Igor Sysoev | Apr 26, 2008 8:57 am | |
| Adrian Perez | Apr 26, 2008 9:52 am | |
| Manlio Perillo | Apr 26, 2008 10:42 am | |
| Mike Crawford | Apr 28, 2008 8:05 am | |
| Adrian Perez | May 4, 2008 10:40 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: How to redirect back to domain name when proxying | Actions... |
|---|---|---|
| From: | Mike Crawford (mike...@public.gmane.org) | |
| Date: | Apr 28, 2008 8:05:49 am | |
| List: | ru.sysoev.nginx | |
Thanks Igor!
For the record, if CAS is not redirecting back to where you want it by default - another way to resolve this is to set the CAS service parameter.
Regards,
Mike
On Sat, Apr 26, 2008 at 1:47 AM, Igor Sysoev
<is-G...@public.gmane.org> wrote:
On Fri, Apr 25, 2008 at 05:03:00PM -0400, Mike Crawford wrote:
I'm using proxy_pass to tomcat for one of my webapps.
The problem is that when the tomcat app calls a single-sign-on application (CAS), CAS redirects back to the tomcat application at 'http://<ip_addr>:<tomcat_port>/app' rather than www.mydomain.com/app.
How can I configure the proxy_pass so that my tomcat application presents itself to other applications as www.mydomain.com/app ?
I'm trying to understand the proxy documentation but I can't figure out a solution. I've tried:
location /app/ { proxy_pass http://<tomcat_server_name>:8089; proxy_redirect http://<tomcat_server_name>:8089/app/ www.mydomain.com/app; proxy_redirect on; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
AND
location /app/ { proxy_pass http://<tomcat_server_name>:8089; proxy_redirect http://<tomcat_server_name>:8089/app/ www.mydomain.com/app; proxy_redirect on; }
Remove "proxy_redirect on", there is no special keyword "on". And use proxy_redirect http://<ip_addr>:<tomcat_port>/app www.mydomain.com/app; or proxy_redirect http://<ip_addr>:<tomcat_port>/app /app;
-- Igor Sysoev http://sysoev.ru/en/








.c