Howto force text type of dir/subdir/file?
Patrick Lists
nginx-list at puzzled.xs4all.nl
Wed May 29 14:35:03 UTC 2013
Hi,
On a CentOS 6.4 box with nginx 1.4.1 I would like to expose
/usr/share/doc/* as <domain>/doc so I can easily browse the docs from
the installed packages.
Config I have right now (thanks Nodex on irc for pointing me to types):
# docs
location /doc {
alias /usr/share/doc/;
autoindex on;
types { }
default_type text/plain;
}
This works fine when I browse to for example:
https://<domain>/doc/procmail-3.22/examples/1procmailrc
But it does not work for:
https://<domain>/doc/postfix-2.6.6/README_FILES/AAAREADME
Not work meaning Firefox offers the AAAREADME file for download.
# file AAAREADME
AAAREADME: ASCII text, with overstriking
Anyone have a hint what I am doing wrong?
Thanks!
Patrick
More information about the nginx
mailing list