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
  #21  
Old 2nd February 2010, 22:14
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by yoplait View Post
I had the same problem, and I had resolved it with your tips.

Thanks for your help, it works great for me .
yoplait,

*Please* tell me what you did.

Are you using Digest authentication?

S
Reply With Quote
Sponsored Links
  #22  
Old 2nd February 2010, 22:21
yoplait yoplait is offline
Senior Member
 
Join Date: Dec 2009
Posts: 144
Thanks: 50
Thanked 14 Times in 11 Posts
Default

Of course i will tell you .
My problem was for munin. Without virtual host, I had to find where it was configured.
I tried this directive in the /var/www/munin/.htaccess file :
Code:
<Limit GET>
Order Deny,Allow
Deny from all
</Limit>
But it wasn't working.
I found that the configuration file for this was /etc/apache2/sites-enabled/000-ispconfig.conf, so in this one, I had :
Code:
<Directory /var/www/munin>
        AllowOverride All
        Order allow,deny
        Allow from all
</Directory>
then restart apache : invoke-rc.d apache2 restart
I had this file : /var/www/munin/.htaccess :
Code:
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/munin/.htpasswd
<limit GET PUT POST>
require valid-user
</limit>
Creation of the password :
Code:
htpasswd -c /var/www/munin/.htpasswd admin
And everything was working .
Reply With Quote
  #23  
Old 2nd February 2010, 22:30
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by yoplait View Post
Of course i will tell you .


Quote:
My problem was for munin. Without virtual host, I had to find where it was configured.
I found that the configuration file for this was /etc/apache2/sites-enabled/000-ispconfig.conf
*How* did you establish that this was the conf file?

You are using basic authentication as well but surely I have done basically the same thing except that I used htdigest to create the password file, not htpasswd.

No?

S
Reply With Quote
  #24  
Old 3rd February 2010, 13:14
yoplait yoplait is offline
Senior Member
 
Join Date: Dec 2009
Posts: 144
Thanks: 50
Thanked 14 Times in 11 Posts
Default

I saw that there was nothing in the /etc/apache2/apache2.conf file about directories. So I checked the virtualhost files.
I know that munin is not on the other virtualhost but on the root folder (/var/www), so I tried to watch each file about *not* the virtual domains... and so, I found this one where squirrelmail and webalizer was configured.
Reply With Quote
  #25  
Old 3rd February 2010, 14:27
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi,

This really is driving me crazy...

Looking here:
http://httpd.apache.org/docs/2.0/mod...th_digest.html

It says that my .htaccess file should look similar to this:
Code:
<Location /private/>
AuthType Digest
AuthName "private area"
AuthDigestDomain /private/ http://mirror.my.dom/private2/
AuthDigestFile /web/auth/.digest_pw
Require valid-user
</Location>
Which it does:
Code:
<Location /var/www/lockthisfolder>
        AuthType Digest
        AuthName "Private"
        AuthDigestDomain /var/www/lockthisfolder
        AuthDigestFile /etc/apache2/lockbydigest/digest
        Require valid-user
</Location>
If I do
Code:
locate lockbydigest
I get
Code:
/etc/apache2/lockbydigest
/etc/apache2/lockbydigest/digest
So the digest file I created using htdigest is in the correct place.

*What* is wrong with the setup?

s
Reply With Quote
  #26  
Old 3rd February 2010, 15:05
yoplait yoplait is offline
Senior Member
 
Join Date: Dec 2009
Posts: 144
Thanks: 50
Thanked 14 Times in 11 Posts
Default

Did you try the normal mode before doing the digest one ?
Reply With Quote
  #27  
Old 3rd February 2010, 17:32
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by yoplait View Post
Did you try the normal mode before doing the digest one ?
yoplait,

No. I will and I'll report back :-)

S
Reply With Quote
  #28  
Old 4th February 2010, 11:36
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi,

No luck. Basic authentication doesn't seem to work either...

This is what I did:

Code:
me@mybox:/etc/apache2/lockbybasic$ sudo htpasswd -c basic myname
New password: 
Re-type new password: 
Adding password for user myname
me@mybox:/etc/apache2/lockbybasic$ locate lockthisfolder
/var/www/lockthisfolder
/var/www/lockthisfolder/.htaccess
me@mybox:/etc/apache2/lockbybasic$ cd /var/www/lockthisfolder
me@mybox:/var/www/lockthisfolder$ sudo nano .htaccess
me@mybox:/var/www/lockthisfolder$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2
   ...done.
me@mybox:/var/www/lockthisfolder$
This is the relevant htaccess file:
Code:
<Directory /var/www/lockthisfolder>
        AuthType Basic
        AuthName "Private"
        AuthUserFile /etc/apache2/lockbybasic/basic
        <limit GET PUT POST>
                require valid-user
        </limit>
</Directory>
I still get the same 500 Server error...

There must be some stupid newb mistake I'm making...

Any ideas?

S
Reply With Quote
  #29  
Old 4th February 2010, 12:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Remove the <Directory .... directives from the .htaccess file. They are not nescessary and as the reals directory is /var/www/clients/....., they prevent that the .htaccess file works as expected.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #30  
Old 4th February 2010, 13:12
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
Remove the <Directory .... directives from the .htaccess file. They are not nescessary and as the reals directory is /var/www/clients/....., they prevent that the .htaccess file works as expected.
till,

Bless you for coming to the rescue!

Ok, basic authentication works with the <Directory> directives removed!

Why won't Digest Authentication work though, if my htaccess file looks like this
Code:
AuthType Digest
AuthName "Private"
AuthDigestDomain /var/www/lockthisfolder
AuthDigestFile /etc/apache2/lockbydigest/digest
Require valid-user
Please note that the /var/www/lockthisfolder is *outside* the ISPc3 structure. I'm guessing it's *not* actually /var/www/clients/..... etc...? It's directly in /var/www.

Can you help me get Digest Auth working?

S
Reply With Quote
Reply

Bookmarks

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
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 23:41
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 11:46
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40


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


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