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.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th February 2011, 21: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

Hello!
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
  #2  
Old 19th February 2011, 16:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Are there any errors in Apache's error log?
__________________
Falko
--
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
  #3  
Old 19th February 2011, 18: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 18:44. Reason: Added some notes
Reply With Quote
Reply

Bookmarks

Tags
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 15:23
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26


All times are GMT +2. The time now is 10:14.


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