| 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 |
| Subject: | Re: forward by sub domain | |
|---|---|---|
| From: | Igor Sysoev (is-G...@public.gmane.org) | |
| Date: | Sep 22, 2007 12:17:36 am | |
| List: | ru.sysoev.nginx | |
On Sat, Sep 22, 2007 at 12:03:18AM -0700, Alex Egg wrote:
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 ?
No, the svn sub domain is for svn & a svn browser web app: www.warehouseapp.com
If you plan MOVE or COPY in svn repository you may need to rewrite Destination header:
location / {
set $destination $http_destination; if ($destination ~* ^http://public_svn_name:3000(.*)$) { set $destination http://private_svn_name:3000$1; }
proxy_pass http://127.0.0.1:3000; proxy_set_header Destination $destination;
-- Igor Sysoev http://sysoev.ru/en/





