hallo,
ich hab hier mehrere vhosts auf dem apache laufen, davon soll einer per passort geschützt werden.
hier die config des vhosts:
Code:
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName server1
ServerAlias server1
DocumentRoot /var/www/server1
<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
<Directory /var/www/server1>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/server1/cgi-bin/
<Directory "/var/www/server1/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/server1_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/server1_access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
unter /var/www/server1 liegt dann die .htaccess:
Code:
AuthType Basic
AuthName "Resitricted Area"
AuthUserFile "/etc/apache2/.server1_passwords"
require user ich
und die passwortdatei hab ich mittels
Code:
htpasswd -c /etc/apache2/.server1_passwords ich
erstellt.
das fenster zur passwortabfrage kommt, aber das passwort wird nicht angenommen.
hier noch dir server1_error.log:
Code:
[Wed Oct 14 23:42:10 2009] [error] [client 93.206.72.169] GROUP: ich not in required group(s).
welche groups??? in der htaccess require ich ja nur einen user, keine group...
vielleicht weiß ja jemand was dazu
Lesezeichen