View Single Post
  #3  
Old 19th February 2011, 19:30
vancip vancip is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
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

Last edited by vancip; 19th February 2011 at 19:44. Reason: Added some notes
Reply With Quote