Welcome! Log In Create A New Profile

Advanced

Не работает include с маской *

ola
November 01, 2011 09:10AM
Здравствуйте, 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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Не работает include с маской *

ola November 01, 2011 09:10AM

Re: Не работает include с маской *

Maxim Dounin November 01, 2011 09:20AM

Re: Не работает include с маской *

ola November 01, 2011 09:26AM

Re: Не работает include с маской *

Maxim Dounin November 01, 2011 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
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