Welcome! Log In Create A New Profile

Advanced

Howto force text type of dir/subdir/file?

Patrick Lists
May 29, 2013 10:36AM
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
Subject Author Posted

Howto force text type of dir/subdir/file?

Patrick Lists May 29, 2013 10:36AM

Re: Howto force text type of dir/subdir/file?

artem May 29, 2013 12:12PM

Re: Howto force text type of dir/subdir/file?

Patrick Lists May 29, 2013 12:30PM

Re: Howto force text type of dir/subdir/file?

Francis Daly May 29, 2013 06:38PM

Re: Howto force text type of dir/subdir/file?

Patrick Lists May 29, 2013 08:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready