Welcome! Log In Create A New Profile

Advanced

emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

XUFENG
June 18, 2009 01:46AM
Hi
Nginx version:0.7.60
Nginx compiling option:
./configure --prefix=/usr/local/nginx-0.7.60
Nginx conf:

server {
listen 8080;
server_name test.example.com;
charset utf-8;

access_log logs/test.example.com-access.log main;

proxy_cache_path /tmp/cache levels=1:2 keys_zone=one:10m;
location / {
index index.php index.html index.htm;
proxy_pass http://static;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache one;
proxy_cache_valid 200 30d;
proxy_cache_valid any 1h;
}
}
When run /usr/local/nginx-0.7.60/sbin/nginx
it showed:
emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

what is wrong?

--------------
XUFENG
2009-06-18
Subject Author Posted

emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

XUFENG June 18, 2009 01:46AM

Re: emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

Igor Sysoev June 18, 2009 02:11AM

Re: Re: emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

XUFENG June 18, 2009 02:42AM

Re: Re: emerg]: "proxy_cache_path" directive is not allowed here in /usr/local/nginx-0.7.60/conf/nginx.conf:35

Maxim Dounin June 18, 2009 04:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready