Possible bug with -f test

bkirkbri nginx-forum at nginx.us
Thu Jun 10 22:55:26 MSD 2010


Igor Sysoev Wrote:
-------------------------------------------------------
> The bug is in "alias/if" combination. "root"
> should work:
> 
>           location ~ \.html$ {
>                 root      /tmp;
>                 ...
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 

Cool, it does work with "root" instead of "alias".  I had tried that, but wasn't sure if it was a safe alternative because of the warning from Dave Cheney on this page:

http://serverfault.com/questions/23157/setting-expires-headers-for-static-content-served-from-nginx

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,96823,96842#msg-96842




More information about the nginx mailing list