Не работает include с маской *
ola
ola_nk на mail.ru
Вт Ноя 1 13:09:10 UTC 2011
Здравствуйте, Nginx-ru.
# uname -a
Linux ditel.ru 2.6.18-238.9.1.el5xen #1 SMP Tue Apr 12 18:53:56 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
# ./nginx -V
nginx: nginx version: nginx/1.0.8
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
nginx: configure arguments:
--prefix=/data/test/nginx-1.0.8
--user=user1
--group=user1
--sbin-path=/data/test/nginx-1.0.8/nginx
--with-cc-opt='-I /usr/local/include'
--with-pcre=../pcre-8.12
--with-zlib=../zlib-1.2.5
--without-http_access_module
--without-http_auth_basic_module
--without-http_autoindex_module
--without-http_browser_module
--without-http_fastcgi_module
--without-http_limit_req_module
--without-http_limit_zone_module
--without-http_memcached_module
--without-http_scgi_module
--without-http_split_clients_module
--without-http_upstream_ip_hash_module
--with-http_perl_module
--with-http_random_index_module
# cat conf/nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
map $uri $new {
include map/*.map;
}
server {
listen 127.0.0.1:80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
# ls conf/map/
default.map
# cat conf/map/default.map
default '';
# ./nginx -t
nginx: [emerg] open() "/data/test/nginx-1.0.8/conf/map/*.map" failed (2: No such file or directory) in /data/test/nginx-1.0.8/conf/nginx.conf:16
nginx: configuration file /data/test/nginx-1.0.8/conf/nginx.conf test failed
Что я не так делаю?
--
С уважением, Ольга Н.
Подробная информация о списке рассылки nginx-ru