Quantcast
Channel: Howto force text type of dir/subdir/file?
Viewing all articles
Browse latest Browse all 10

Howto force text type of dir/subdir/file?

$
0
0
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 10

Trending Articles