--- Original message ---
From: "Patrick Lists" <[email protected]>
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
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to