

![]() | 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: |
17 messages in ru.sysoev.nginxRe: forward by sub domain| From | Sent On | Attachments |
|---|---|---|
| Alex Egg | Sep 21, 2007 9:54 pm | |
| Igor Sysoev | Sep 21, 2007 11:57 pm | |
| Alex Egg | Sep 22, 2007 12:02 am | |
| Alex Egg | Sep 22, 2007 12:08 am | |
| Igor Sysoev | Sep 22, 2007 12:13 am | |
| Igor Sysoev | Sep 22, 2007 12:17 am | |
| Alex Egg | Sep 22, 2007 12:46 pm | |
| Alex Egg | Sep 22, 2007 4:50 pm | |
| Wayne E. Seguin | Sep 22, 2007 7:09 pm | |
| BJ Clark | Sep 22, 2007 8:18 pm | |
| Igor Sysoev | Sep 22, 2007 11:09 pm | |
| Wayne E. Seguin | Sep 23, 2007 6:18 am | |
| Alex Egg | Sep 23, 2007 9:53 am | |
| Alex Egg | Sep 23, 2007 10:28 am | |
| Denis F. Latypoff | Sep 23, 2007 10:38 am | |
| Igor Sysoev | Sep 23, 2007 10:44 am | |
| Alex Egg | Sep 23, 2007 10:53 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: forward by sub domain | Actions... |
|---|---|---|
| From: | BJ Clark (bjcl...@public.gmane.org) | |
| Date: | Sep 22, 2007 8:18:50 pm | |
| List: | ru.sysoev.nginx | |
Here's my config that works perfectly with warehouse.
upstream svn { server 127.0.0.1:8210; server 127.0.0.1:8211; }
server { listen 80; server_name svn.foo.com *.svn.foo.com; client_max_body_size 25M;
root /home/bj/warehouse/public;
location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; proxy_max_temp_file_size 0;
if (-f $request_filename) { break; }
if (-f $request_filename/index.html) { rewrite (.*) $1/index.html; break; }
if (-f $request_filename.html) { rewrite (.*) $1.html; break; }
if (!-f $request_filename) { proxy_pass http://svn; break; } }
error_page 500 502 503 504 /500.html; location = /500.html { root /home/me/warehouse/public; } }
It's modified from engine yard's (ezra z.'s) configs.
----- BJ Clark the science department bjclark-BuEfY0+rqxV...@public.gmane.org www.scidept.com
On Sep 22, 2007, at 5:50 PM, Alex Egg wrote:
Hi,
This works, but the app sitting at localhost:3000 is expecting the request to come from svn.mydomain.com. Since it sees the domain localhost, it errors out.
Is there way to still proxy the request to localhost:300 but have it appear that it's from svn.mydomain.com?
On 9/21/07, Igor Sysoev <is-G...@public.gmane.org> wrote:
On Fri, Sep 21, 2007 at 09:54:54PM -0700, Alex Egg wrote:
How can I make nginx forward any request for svn.mydomain.com to localhost:3000?
This is my current upstream snippet:
upstream mongrel { server 0.0.0.0:8000; server 0.0.0.0:8001; server 0.0.0.0:8002; # forward svn.mydomain.com to 0.0.0.0:3000 here }
http {
upstream mongrel { ... }
server { .... }
server { server_name svn.mydomain.com;
location / { proxy_pass http://localhost:3000; } }
Do you plan to work read only with svn ?
-- Igor Sysoev http://sysoev.ru/en/







