View Full Version : Question htaccess protection on ispadmin login page
bongo
11th May 2009, 19:24
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
Yes, you can use .htacces protection if you like. The files have to be in /usr/local/ispconfig/interface/web/
bongo
11th May 2009, 20:24
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
falko
12th May 2009, 19:39
What's in the ISPConfig vhost configuration file (on Debian it'S in /etc/apache2/sites-available)?
bongo
13th May 2009, 13:33
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>
falko
14th May 2009, 16:20
Change
<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
<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>
bongo
14th May 2009, 17:36
It is working now.
Thank you very much!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.