Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Не работает include с маской *
- To: nginx-ru@xxxxxxxxx
- Subject: Не работает include с маской *
- From: ola <ola_nk@xxxxxxx>
- Date: Tue, 1 Nov 2011 16:09:10 +0300
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:Message-ID:Reply-To:From:Date; bh=g/xriPnuEKx8JOOEQwX688ypkljCjTxjs5KfaiC9Sq4=; b=GXZUmls2kqbVLEY4ryqrGbAmoJfiF74vVD2n3ZwfO/EhcQP/3M75KrfTu7OwQXbJVj4CnXjNKq81Phz0sTWzt+05g2SUBvHd9h8kFHOg4JKe0p2aJiENSohCCobpbjit;
Здравствуйте, 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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|