Quote:
Originally Posted by falko
Are there any errors in Apache's error log?
|
[Sat Feb 19 16:52:13 2011] [error] [client xx.yy.zz.kk] Directory index forbidden by Options directive: /var/www/mysite.com/web/stats/
May we add something in stats/.htaccess template?
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client0/web2/.htpasswd_stats
require valid-user
*** DirectoryIndex index.html
Still testing about missing images:
I wrote this as first location directive in nginx/sites-enabled/default
location ~* ^/stats{
proxy_pass http://$host:82;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
if ($request_uri ~* ^/stats)
{
break;
}
I suppose this one working to force subfolder being processed only by Apache at port 82 since I wasn't unable to skip authentication window but while mysite.com:82/stats/index.html shows png files, in mysite.com/stats/index.html are missing