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 11th May 2009, 18:24
bongo bongo is offline
Junior Member
 
Join Date: Sep 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 2 Posts
Question Question htaccess protection on ispadmin login page

Hello,

ispconfig 3 is really great.

is it possible to setup an additional htaccess directory protection to the isp admin login?

if yes, in what directory i have to place the files .htaccess and .htpasswd ?

Thank you for your help.

Bongo
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2009, 18:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,589
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Yes, you can use .htacces protection if you like. The files have to be in /usr/local/ispconfig/interface/web/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th May 2009, 19:24
bongo bongo is offline
Junior Member
 
Join Date: Sep 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hello Till,

thank you for your fast reply. I copied both files into the folder, but it is still not working.


.htaccess:

AuthUserFile /usr/local/ispconfig/interface/web/.htpasswd
AuthGroupFile /dev/null
AuthName "Adminarea"
AuthType Basic
<Limit GET>
require valid-user
</Limit>


.htpasswd is in the same folder with correct user and password



in var/www/domain web folders it is working without problems...


any ideas?

Thank you
Reply With Quote
  #4  
Old 12th May 2009, 18:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in the ISPConfig vhost configuration file (on Debian it'S in /etc/apache2/sites-available)?
__________________
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
  #5  
Old 13th May 2009, 12:33
bongo bongo is offline
Junior Member
 
Join Date: Sep 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hello Falko,

thx for taking the time looking into this. i use centos 5.3.

/etc/httpd/conf/sites-enabled/

000-ispconfig.conf
000-ispconfig.vhost



vhost file:


################################################## ####
# This virtual host contains the configuration
# for the ISPConfig controlpanel
################################################## ####

Listen 9091
NameVirtualHost *:9091

<VirtualHost _default_:9091>
ServerAdmin webmaster@localhost

<IfModule mod_fcgid.c>
DocumentRoot /var/www/ispconfig/
SuexecUserGroup ispconfig ispconfig
<Directory /var/www/ispconfig/>
Options Indexes FollowSymLinks MultiViews +ExecCGI
AllowOverride AuthConfig Indexes Limit Options FileInfo
AddHandler fcgid-script .php
FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_php5.c>
DocumentRoot /usr/local/ispconfig/interface/web/
AddType application/x-httpd-php .php
<Directory /usr/local/ispconfig/interface/web>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
php_value magic_quotes_gpc 0
</Directory>
</IfModule>

# ErrorLog /var/log/apache2/error.log
# CustomLog /var/log/apache2/access.log combined
ServerSignature Off

</VirtualHost>

<Directory /var/www/php-cgi-scripts>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<Directory /var/www/php-fcgi-scripts>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
Reply With Quote
  #6  
Old 14th May 2009, 15:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Change
Code:
<IfModule mod_php5.c>
DocumentRoot /usr/local/ispconfig/interface/web/
AddType application/x-httpd-php .php
<Directory /usr/local/ispconfig/interface/web>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
php_value magic_quotes_gpc 0
</Directory>
</IfModule>
to
Code:
<IfModule mod_php5.c>
DocumentRoot /usr/local/ispconfig/interface/web/
AddType application/x-httpd-php .php
<Directory /usr/local/ispconfig/interface/web>
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
php_value magic_quotes_gpc 0
</Directory>
</IfModule>
__________________
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
  #7  
Old 14th May 2009, 16:36
bongo bongo is offline
Junior Member
 
Join Date: Sep 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

It is working now.
Thank you very much!
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
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Question about login page dvazart Tips/Tricks/Mods 2 23rd February 2009 11:36
dovecot problem sojic Server Operation 21 23rd March 2008 18:22
Unable to authenticate to SMTP server ashkev Installation/Configuration 15 6th February 2007 17:46
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 17:28


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


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