nginx reverse proxy for vibe tutorial

2012-05-04 Thread James Miller
I have spent some time setting up nginx as a reverse proxy for vibe, and I thought I might share some of my issues here for now, just in case it helps someone. I will assume that you are generally familiar with configuring nginx, where the files are, how server directives work etc. The basic

Re: nginx reverse proxy for vibe tutorial

2012-05-04 Thread David
* using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files to serve arbitrary static files, hence the massive list of extensions. why not doing: root /path/to/static location / { try_files $uri @app_proxy

Re: nginx reverse proxy for vibe tutorial

2012-05-05 Thread James Miller
On Friday, 4 May 2012 at 11:54:04 UTC, David wrote: * using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files to serve arbitrary static files, hence the massive list of extensions. why not doing: root /pat

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread David
Am 06.05.2012 03:00, schrieb James Miller: On Friday, 4 May 2012 at 11:54:04 UTC, David wrote: * using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files to serve arbitrary static files, hence the massive list of

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 13:47:27 UTC, David wrote: Am 06.05.2012 03:00, schrieb James Miller: On Friday, 4 May 2012 at 11:54:04 UTC, David wrote: * using `try_files`, nginx complains that you can't use proxy_pass inside a named location (like `@vibe`), which means you can't use try_files to s

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 22:32:16 UTC, James Miller wrote: I thought it should work, and I'm probably missing something, but here: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_e

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread David Nadlinger
On Sunday, 6 May 2012 at 22:42:21 UTC, James Miller wrote: I think FUU is the most appropriate sentiment here. Wait till you try using conditional blocks in Lighty's configuration files… [1] David [1] lighttpd supports conditional blocks for a number of predefined variables, inclu

Re: nginx reverse proxy for vibe tutorial

2012-05-06 Thread James Miller
On Sunday, 6 May 2012 at 22:50:56 UTC, David Nadlinger wrote: On Sunday, 6 May 2012 at 22:42:21 UTC, James Miller wrote: I think FUU is the most appropriate sentiment here. Wait till you try using conditional blocks in Lighty's configuration files… [1] David [1] lighttpd supports

Re: nginx reverse proxy for vibe tutorial

2012-05-07 Thread Nick Sabalausky
"James Miller" wrote in message news:tsqxxnxrqfcfyvxmp...@forum.dlang.org... > On Sunday, 6 May 2012 at 22:50:56 UTC, David Nadlinger wrote: >> On Sunday, 6 May 2012 at 22:42:21 UTC, James Miller wrote: >>> I think FUU is the most appropriate sentiment here. >> >> Wait till you try using

Re: nginx reverse proxy for vibe tutorial

2017-02-22 Thread zjh via Digitalmars-d
谢谢!