Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 18th February 2011, 22:52
vancip vancip is offline
Junior Member
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Nginx+Apache] Unable to access awstats

i've been experiencing some troubles with ISPconfig3 awstats.
I've installed Nginx as reverse proxy for Apache using the tutorial in this site but suddenly awstats doesn't show info properly.

Accessing with right username and password
mysite.com/stats gives me always page 403
mysite.com:82/stats gives me always page 403 where 82 is Apache port

mysite.com/stats/index.html and mysite.com:82/stats/index.html work (version:82 with images, version:80 not) but no authentication required.
I suppose there should be something to add in nginx config but what?
Reply With Quote
Sponsored Links
Old 19th February 2011, 17:47
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

Are there any errors in Apache's error log?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
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

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)

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


awstats, ispconfig3, nginx

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 16:23
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 19:16
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26

All times are GMT +2. The time now is 01:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.