Frédéric,

'/usr/sbin/nginx -t' is used to test configuration.
So if you have an old binary by that path, configuration check will
result in an error.

Nick

2009/8/31 Frédéric Sidler <[email protected]>:
>
> I successfully upgraded the nginx version to 0.8.11. Nginx is used now
> to load balance the requests and also as reverse caching proxy.
>
> The problem is I cannot synchronize to all without getting the following 
> error.
>
> Configuration error detected: '2009/08/31 09:23:04 [emerg] 7536#0:
> unknown directive "proxy_cache_path" in /etc/nginx/nginx.conf:29
> 2009/08/31 09:23:04 [emerg] 7536#0: the configuration file
> /etc/nginx/nginx.conf test failed'. Reverting configuration.
>
> I did everything I could to use the same directory for the new nginx
> 0.8.11 as the original nginx 0.5.3 application. I used the same
> compilation option. I just put the binaries in /usr/local/
> Then I edited the init script to pint to this binary.
>
> Everything works fine except I cannot bundle the image. What should I
> do. Is this error important or just an alert?
>
> There is a second problem with the bundle of the app instance. In the
> app-servers.include file was an IP that didn't belong to me ;-( So I
> retrieve the internal IP address of the app instance, copy it there
> and it works.
>
> FYI. Here is the nginx.conf from scalr modified to manage reverse proxy 
> caching.
>
> user www-data;
> worker_processes  4;
>
> error_log  /var/log/nginx/error.log;
> pid        /var/run/nginx.pid;
>
> events {
>    worker_connections  4096;
> }
>
> http {
>    include       /etc/nginx/mime.types;
>    default_type  application/octet-stream;
>
>    log_format main '$remote_addr - $remote_user [$time_local]  '
>                     '"$request" $status $body_bytes_sent '
>                     '"$http_referer" "$http_user_agent"'
>                     '"$upstream_cache_status"';
>
>    access_log  /var/log/nginx/access.log main;
>
>    sendfile        on;
>
>    keepalive_timeout  30;
>    tcp_nodelay        on;
>
>    include /etc/nginx/app-servers.include;
>
>    proxy_cache_path /var/www/fbcaldotcom/cache levels=1:2 keys_zone=one:10m;
>    proxy_temp_path   /temp/cache;
>
>    server {
>        listen       80;
>
>        if ( $remote_addr = 127.0.0.1 ) {
>            rewrite   ^(.*)$  /500.html last;
>            return 302;
>
>        }
>
>        location /    {
>            proxy_pass         http://backend;
>
>            proxy_cache one;
>            proxy_cache_key         backend$request_uri;
>            proxy_cache_valid 200 3h;
>            proxy_cache_use_stale   error timeout invalid_header;
>
>            proxy_set_header   Host             $host;
>            proxy_set_header   X-Real-IP        $remote_addr;
>
>            proxy_set_header   Host             $host;
>            proxy_set_header   X-Real-IP        $remote_addr;
>            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
>
>            error_page   500 501  =  /500.html;
>            error_page   502 503 504  =  /502.html;
>        }
>
>        location /500.html {
>                root   /var/www/nginx-default;
>        }
>
>        location /502.html {
>                root   /var/www/nginx-default;
>        }
>
>    }
>
> }
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to