proxy_temp_path

Roman sirotar at mail.ru
Thu Jan 29 20:25:38 MSK 2009


Hello Igor,

Thursday, January 29, 2009, 5:26:48 PM, you wrote:

IS> On Thu, Jan 29, 2009 at 04:54:33PM +0200, Roman wrote:

>> Добрый день,
>> подскажите в чем я не прав, или может что-то не дочитал или не
>> досмотрел.
>> 
>> nginx version: nginx/0.7.14
>> nginx.conf
>> 
>> ...
>> client_body_temp_path /usr/local/nginx/client_temp;
>> proxy_temp_path /usr/local/nginx/proxy_temp;
>> fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
>> ...
>> 
>> стартую nginx и получаю ошибку:
>> 
>> 009/01/29 15:48:11 [emerg] 1054#0: the configuration file /usr/local/etc/nginx/nginx.conf test failed
>> Starting nginx.
>> 2009/01/29 15:48:11 [emerg] 1055#0: mkdir() "/var/tmp/nginx/proxy_temp" failed (2: No such file or directory)
>> 
>> откуда эти пути берутся?

IS> Это дефолтные пути, настраиваемые при ./confugure.
IS> Что показывает "nginx -V" ?

nginx -V
nginx version: nginx/0.7.14
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=-I
/usr/local/include --with-ld-opt=-L /usr/local/lib
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--add-module=/usr/local/src/nginx_uploadprogress_module
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_addition_module
--with-http_flv_module --with-http_realip_module
--with-http_stub_status_module --with-http_sub_module
--add-module=/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.6


IS> Поменять их в конфигурации просто - нужно их определить на уровне http.
так и есть, proxy_temp_path определена на уровне http

user  domains domains;
worker_processes  5;

error_log  /usr/local/nginx/logs/error.log crit;
pid        /usr/local/nginx/logs/nginx.pid;

events {
        worker_connections  4048;
        use kqueue;
}


http {
....
    client_body_temp_path /usr/local/nginx/client_temp;
    proxy_temp_path /usr/local/nginx/proxy_temp;
    fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
....
}






-- 
Best regards,
 Roman                            mailto:sirotar at mail.ru






More information about the nginx-ru mailing list