Htaccess geht nicht

Apache, Lighttpd, nginx, Cherokee
Post Reply
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Htaccess geht nicht

Post 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
hornox
Posts: 139
Joined: 2005-09-22 23:09
 

Re: Htaccess geht nicht

Post by hornox »

umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Htaccess geht nicht

Post by umbroboy »

Danke geht.
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Htaccess geht nicht

Post by umbroboy »

Hallo,

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

Viele Grüße und Danke
umbroboy
schl
Posts: 343
Joined: 2003-02-05 11:26
Location: München/Unterschleißheim
 

Re: Htaccess geht nicht

Post by schl »

umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Htaccess geht nicht

Post 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.
slechelmayr
Posts: 7
Joined: 2005-09-20 10:53
Location: Loehne bei Bielefeld
 

Re: Htaccess geht nicht

Post 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 =)
Post Reply