nginx location+proxy_pass?

Roxis roxis at list.ru
Fri Oct 19 18:48:10 MSD 2007


On Friday 19 October 2007, David Salgado wrote:
> Nope, same error message when nginx tries to parse the config. But, as
> I said, removing the 'permanent' part does the trick.
>
> Cheers
>
> David

error message says that you are using regular expression location

my nginx version: 0.6.13
and here is my full working nginx.conf:

user www;
worker_processes 1;

events {
    worker_connections 1024;
}

http {

include mime.types;

upstream mongrel_cluster1 {
    server 127.0.0.1:3001;
    server 127.0.0.1:3002;
}

upstream mongrel_cluster2 {
    server 127.0.0.1:4001;
    server 127.0.0.1:4002;
}

server {
    listen 127.0.0.1:80 default deferred;

    location /app1/ {
        proxy_pass http://mongrel_cluster1/;
    }

    location /app2/ {
        proxy_pass http://mongrel_cluster2/;
    }
}

}





More information about the nginx mailing list