Page 1 of 1

Htaccess geht nicht

Posted: 2005-09-24 23:58
by umbroboy
Hallo,

habe eine *.htaccess und *.htpasswd angelegt:

htaccess:

Auth Type Basic
AuthName "Mitgliederbereich"
AuthUserFile /home/httpd/vhosts/linux/.htpasswd
require valid-user


htpasswd:
cologne:tJEnGA2Nfbeis

Mit dem Befehl:

Code: Select all

htpasswd2 -cd /home/httpd/vhosts/horde/ansel/.htpasswd cologne
Folgende Meldung ist im Apachelog:

[Sat Sep 24 23:56:06 2005] [alert] [client 82.135.66.75] /home/httpd/vhosts/horde/ansel/.htaccess: Invalid command 'Auth', perhaps mis-spelled or defined by a module not included in the server configuration

Nur hab ich keine Ahnung warum

:(

Viele Grüße
umbroboy

Re: Htaccess geht nicht

Posted: 2005-09-25 00:12
by hornox

Re: Htaccess geht nicht

Posted: 2005-09-25 10:14
by umbroboy
Danke geht.

Re: Htaccess geht nicht

Posted: 2005-09-27 21:10
by umbroboy
Hallo,

ist es möglich die HTACCESS abfrage nur auf eine subdomain zu beziehen?

Viele Grüße und Danke
umbroboy

Re: Htaccess geht nicht

Posted: 2005-09-28 11:42
by schl

Re: Htaccess geht nicht

Posted: 2005-09-28 14:52
by umbroboy
Ach meinst du dass hier:

Code: Select all

AllowOverride None 
das Problem ist, dass das verzeichnis das gleiche ist.

Nur die eine Subdomain soll die abfrage machen und die andere subdomain nicht.

Re: Htaccess geht nicht

Posted: 2005-09-30 16:55
by slechelmayr
aus dem bauch: du koenntest versuchen, die beiden subdomains als "unabhaengige" VirtualHosts's einzurichten (und nicht eine nur mit ServerAlias anzugeben), und dann in beiden VirtualHost Direktiven, die Directory konfigurieren: einmal erlaubst du das ueberschreiben, und einmal nicht. Das _koennte_ funktionieren, ich glaub's aber fast nicht... try it out =)