Howto force text type of dir/subdir/file?
Patrick Lists
nginx-list at puzzled.xs4all.nl
Wed May 29 16:29:15 UTC 2013
On 05/29/2013 06:11 PM, wishmaster wrote:
[snip]
> What is in log?
In the access.log:
Working ok when browsing a procmail file:
<my_ip> - - [29/May/2013:18:15:15 +0200] "GET
/doc/procmail-3.22/examples/ HTTP/1.1" 200 1597
"https://<host>/doc/procmail-3.22/" "Mozilla/5.0 (X11; Linux x86_64;
rv:21.0) Gecko/20100101 Firefox/21.0"
Not working when browsing a Postfix file:
<my_ip> - - [29/May/2013:18:17:00 +0200] "GET
/doc/postfix-2.6.6/README_FILES/INSTALL HTTP/1.1" 200 33503
"https://<host>/doc/postfix-2.6.6/README_FILES/" "Mozilla/5.0 (X11;
Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0"
There is nothing in the error 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;
> }
Thanks for the tip. Changed my config to:
# docs
location /doc/ {
#alias /usr/share/doc/;
root /usr/share;
autoindex on;
types { }
default_type text/plain;
}
I still have the same issue in the postfix subdir though.
Regards,
Patrick
More information about the nginx
mailing list