Welcome! Log In Create A New Profile

Advanced

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

Patrick Lists
May 29, 2013 12:30PM
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

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