Jonathan Dance jd at
Mon Oct 2 19:39:20 MSD 2006

I might have another one for you. This is now broken for me:

include mime.types;

With my setup, this used to become /etc/nginx/mime.types. I think the
glob support might have broken this. You should test this first on
your build and see if you have the same result - something else could
be broken in my setup. This is the error I get:

glob() "/usr/local/nginx/mime.types" failed (2: No such file or directory)

Which is also marginally odd because /usr/local/nginx doesn't exist.
This is my configure line:

./configure --conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/ \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \

I think I had this working by calling ngx_conf_full_name on the glob
string before passing it to the glob function.


More information about the nginx mailing list