Welcome! Log In Create A New Profile

Advanced

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

May 29, 2013 12:12PM
--- Original message ---
From: "Patrick Lists" <nginx-list@puzzled.xs4all.nl>
Date: 29 May 2013, 17:35:18


> 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;
> }

What is in log?

Also, from nginx docs:

When location matches the last part of the directive’s value:

location /images/ {
alias /data/w3/images/;
}

it is better to use the root directive instead:

location /images/ {
root /data/w3;
}







_______________________________________________
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: 258
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