A catch-all and named server in a single configuration

Matthijs Langenberg lists at ruby-forum.com
Wed Jul 2 17:32:24 MSD 2008


Igor Sysoev wrote:
> On Fri, Jun 13, 2008 at 12:37:59PM +0200, Matthijs Langenberg wrote:
> 
>> I want a directory listing for so I added another server entry:
>> 
>> p.s. this is nginx-0.4.13-2 on debian etch
> The first server is default server for given ip:port pair.
> You may explicitly set any server as default using the "default" keyword
> in the listen directive:
> 
>      server {
>          listen   ip:port default;

That setup doesn't work for me.
When I add the "listen ip:port default;" directive for the catch-all 
service, my dir listing stops working at all.
Maybe I'm not making myself clear enough. I'm searching for setup that 
for instance allows me to proxy all requests for all hosts, but also be 
able to make an exception for a certain host.

e.g. requests for '*' should be proxied to apache, except for a request 
for 'exceptional_domain.com', which should be proxied to 
http://mongrel-cluster.

I'm aware that I'm running a somewhat old version of Nginx, have I ran 
into a bug that already has been fixed?

- Matt
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list