Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Probleme mit .htaccess bei Apache httpd

Empfohlene Antworten

Veröffentlicht

Moin Zusammen, ich hab in nem Verzeichniss

/data/apache eine .htaccess und eine .htpasswd

abgelegt. Document root ist ebenfalls /data/apache.

Wenn ich nun aber auf den Webserver Zugreife erscheint keine Passwortabfrage.

Hier ist meine .htaccess

AuthUserFile /data/apache/.htpasswd

AuthGroupFile /dev/null

AuthName Somewhere.com's Secret Section

AuthType Basic

<Limit GET POST>

require valid-user

</Limit>

Hab ich irgendwas falsch gemacht, oder muss ich .htaccess irgendwo in der httpd.conf freischalten?

Original geschrieben von @@@

Hab ich irgendwas falsch gemacht, oder muss ich .htaccess irgendwo in der httpd.conf freischalten?

musst du!!!

und zwar hier:

<Directory "C:/Program Files/Apache Group/Apache/htdocs">

AllowOverride None <- ändern in z.B. AllowOverride All

Options None

</Directory>

---------------------------------------

-All-

This is a shorthand way of listing all of the categories; the two statements below are equivalent:

AllowOverride AuthConfig FileInfo Indexes Limits Options

AllowOverride All

---------------------------------------

Gruß Jaraz

Du kannst noch probieren die AuthGroupFile und die Limit-Tags wegzulassen, die sind in diesem Fall unnoetig.

Und schau mal ob in der httpd.conf evtl. noch an anderer Stelle ein AllowOverride steht wo AuthConfig oder All nicht gesetzt hat und das sich auf das Verzeichnis beziehen koennte.

gruss

Michael

Hm, das ist i.d.R. ein typisches Anzeichen dafuer dass der Pfad bei AuthUserFile nicht stimmt. Das muss der volle Pfad im Dateisystem sein wo die .htpass dann liegt.

Schau mal nach ob der stimmt.

  • Autor
Original geschrieben von Impulz

Hm, das ist i.d.R. ein typisches Anzeichen dafuer dass der Pfad bei AuthUserFile nicht stimmt. Das muss der volle Pfad im Dateisystem sein wo die .htpass dann liegt.

Schau mal nach ob der stimmt.

Jup, der stimmt, jetzt kommt auch nur die Passwortabfrage, wenn sie kommen soll,

:bimei

z.B. /data/apache/php

Allerdings nimmt er das Passwort immernoch nicht.

:(

DEr Pfad müsste eigentlich stimmen:

Pfad in .htaccess

AuthUserFile /data/apache/php/.htpasswd

Pfad im Dateisystem

/data/apache/php

Sind die Passwörter auch verschlüsselt gespeichert?

Es könnte ja sein, dass du sie einfach als Klartext in die .htpasswd geschrieben hast.

Gruß Jaraz

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.