Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th April 2009, 21:10
letezo letezo is offline
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to letezo
Default Cannot login into Webalizer statistics

OS: Ubuntu 8.04 LTS
ISPConfig 3.0.1.1 is installed (latest stable)

I've set a statistics password in ISPConfig 3 interface, waited 1 min, then verified, that the .htpasswd_stats has been written to the right web folder and has the username admin and my password encrypted. Despite this I can't login into the /stats/ folder of my site.

Tried to search all the files under /etc/ for "htpasswd_stats" (without the dot, for simplicity), but haven't found a single configuration file referencing that. So it is not a miracle that I can't login. I get the login dialog, however, so the authentication seems to be configured somewhere.

I've tried to find the specification of the /stats/ directory in the Apache config files without success. So I don't know where is it configured at all.

Could you please point me to the relevant configuration files?

I've read all the related threads and searched the Web already.

What did I do wrong? Missing steps?
Reply With Quote
Sponsored Links
  #2  
Old 18th April 2009, 21:25
letezo letezo is offline
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to letezo
Default Found the files

More info on this:

I've just found the stats folder is in the filesystem:
/var/clients/client1/web1/web/stats/

(It is not an Alias or so in a config file as I expected.)

There is a .htaccess file there referencing the .htpasswd_stats file:

Code:
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/clients/client1/web1/.htpasswd_stats
<limit GET PUT POST>
require valid-user
</limit>
So it is in the client's web folder, not somewhere under /etc. It was my mistake. Now trying to figure out why it doesn't let me in...
Reply With Quote
  #3  
Old 18th April 2009, 22:05
letezo letezo is offline
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to letezo
Default Seems to be a generic problem with HTTP authentication

It seems to be a generic problem with HTTP authentication here. The Web server managed by ISPConfig 3 is behind a firewall and accessed through a Squid proxy server configured in "reverse proxy" mode.

I've configured mod_rpaf to the Web server (Apache 2.2) to allow using the contents of the X-Forwarded-For header added by Squid as the client's IP address. But it seems to not relate to HTTP authentication at all AFAIK. Maybe I'm not aware of something special here...
Reply With Quote
  #4  
Old 18th April 2009, 22:09
letezo letezo is offline
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to letezo
Default

I think I've found the real problem here:

http://wiki.squid-cache.org/SquidFaq/ReverseProxy

See "Access to password protected content fails via the reverse proxy" at the bottom of the Wiki page:

"If the content on the web servers is password protected then you need to tell the proxy to trust your web server with authentication credentials."

So I need to configure Squid accordingly.

I hope this thread will help others solving such a problem quicker than me.
Reply With Quote
  #5  
Old 18th April 2009, 22:17
letezo letezo is offline
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to letezo
 
Default Working

That's all. I had to append this to the end of my cache_peer line in my squid.conf: login=PASS

PASS is not your password! You need to append the exact string above to that configuration line.

Don't forget to restart or reload squid after changing its configuration file!

Thanks for reading. ;-)
Reply With Quote
Reply

Bookmarks

Tags
stats webalizer auth

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
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Unable to authenticate to SMTP server ashkev Installation/Configuration 15 6th February 2007 18:46
kann keine mails empfangen odin1 Installation/Configuration 5 6th July 2006 13:13
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 18:28
Webalizer - Usage by Country statistics leno Installation/Configuration 3 28th April 2005 19:12


All times are GMT +2. The time now is 04:43.


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