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.

htaccess funktioniert nicht

Empfohlene Antworten

Hallo

Ich benutze den Apache 1.3.19

Das ist meine .htaccess Datei in dem zu schützenden Verzeichnis:

AuthType Basic

AuthName "Geschuetzter-Bereich"

AuthUserFile /home/webadmin/passwords

Require user benutzer

Das ist die passwords-Datei:

benutzer:nsnapc/gUfQDY

Das htaccess-Fenster poppt auf. Ich kann den Benutzernamen und das Passwort eingeben. Allerdings ist das Passwort immer falsch. Irgendwann poppt dann die Seite:

Authorization Required ... auf.

Kann mir da jemand weiterhelfen?

Gruß,

-seb-

Ich habe das chmod ausgeführt. Es funktioniert aber trotzdem nicht :-(

komisch....

hm also nochmal von vorne:

du legst ein neues password file an:

"htpasswd -c /home/webadmin/passwords benutzer"

gibst dann ein password ein.

das .htaccess file, sieht folgender massen aus:

AuthType Basic

AuthName "bla"

AuthUserFile /home/webadmin/passwords

require user benutzer

das .htaccess file sollte dem apache user gehören und es sollte nur read rechte für diesen vergeben sein. also zum test kannste auch mal natuerlich

ein "chmod 777 .htaccess"

die passwort datei selber mit den gleichen rechten versehen wie die .htaccess zum test kann man natuerlich auch wieder ein "chmod 777 /home/webadmin/passwords"

in der httpd.conf natuerlich AllowOverride mit der jeweiligen Directive versehen:

zum testen einfach "AllowOverride All". dies muss explizit für die location gesetzt sein. am besten einfach ins document root, so dass es alles betrifft.

führ doch einfach nochmal folgende schritte durch, eventuell haste einfach irgendwo nur einen kleinen fehler.

gruss cesm

BEi sowas steht im Errorlog, worans happert ...

Also ich das alles ausprobiert. Aber es funzt nicht.

Ich habe jetzt mal folgendes probiert:

Ich habe in die httpd.conf folgendes eingetragen:

<Directory /home/webadmin/public_html/admin>

AllowOverride FileInfo AuthConfig Limit

AuthType Basic

AuthName "Admin-Bereich von Website NL FFM"

AuthUserFile /home/webadmin/password

Require user webadmin

</Directory>

Das funktioniert leider auch nicht :-(

Ich habe auch die password-Datei gelöscht und neu erstellt.

Das ist ein Eintrag aus meiner error_log:

[Fri Jul 12 16:32:32 2002] [error] [client 10.160.99.231] webadmin: not a valid FDN: /admin

Schon mal im vorraus Danke für Eure Hilfe :-)

... und zwar habe ich folgendes auf der Apache.org-Seite gefunden:

On a SuSE Linux system, I try and configure access control using basic authentication. Although I follow the example exactly, authentication fails, and an error message "admin: not a valid FDN: ...." is logged.

In the SuSE distribution, additional 3rd party authentication modules have been added and activated by default. These modules interfere with the Apache standard modules and cause Basic authentication to fail. Our recommendation is to comment all those modules in /etc/httpd/suse_addmodule.conf and /etc/httpd/suse_loadmodule.conf which are not actually required for running your server.

.. jetzt muss man nur noch raussfinden was nicht benötigt wird :rolleyes: .

Quelle:

-seb-Apache-FAQ

Gruß,

-seb-

Hier ist Loadkonfig-Datei: So habe ich die Konfigdateien auskommentiert:

# LoadModule cookie_auth_module /usr/lib/apache/mod_auth_cookie.so

# LoadModule cookie_file_access_module

# /usr/lib/apache/mod_auth_cookie_file.so

# LoadModule external_auth_module /usr/lib/apache/mod_auth_external.so

# LoadModule inst_auth_module /usr/lib/apache/mod_auth_inst.so

LoadModule mysql_auth_module /usr/lib/apache/mod_auth_mysql.so

# LoadModule nds_auth_module /usr/lib/apache/mod_auth_nds.so

# LoadModule radius_auth_module /usr/lib/apache/mod_auth_radius.so

# LoadModule auth_system_module

# /usr/lib/apache/mod_auth_system.so

# LoadModule bandwidth_module

# /usr/lib/apache/mod_bandwidth.so

# LoadModule cache_module

# /usr/lib/apache/libcache.so

# LoadModule cgisock_module /usr/lib/apache/mod_cgisock.so

# LoadModule cvs_module /usr/lib/apache/mod_cvs.so

# LoadModule disallow_id_module /usr/lib/apache/mod_disallow_id.so

LoadModule dtcl_module /usr/lib/apache/mod_dtcl.so

LoadModule eaccess_module /usr/lib/apache/mod_eaccess.so

# LoadModule fastcgi_module /usr/lib/apache/mod_fastcgi.so

# LoadModule gzip_module /usr/lib/apache/mod_gzip.so

# LoadModule w3c_ip_forwarding_module /usr/lib/apache/mod_ip_forwarding.so

# LoadModule layout_module /usr/lib/apache/mod_layout.so

# LoadModule lock_module /usr/lib/apache/mod_lock.so

# LoadModule macro_module /usr/lib/apache/mod_macro.so

# LoadModule peephole_module /usr/lib/apache/mod_peephole.so

# LoadModule put_module /usr/lib/apache/mod_put.so

# LoadModule qs2ssi_module /usr/lib/apache/mod_qs2ssi.so

# LoadModule random_module /usr/lib/apache/mod_random.so

# LoadModule relocate_module /usr/lib/apache/mod_relocate.so

# LoadModule roaming_module /usr/lib/apache/mod_roaming.so

LoadModule session_module /usr/lib/apache/mod_session.so

LoadModule throttle_module /usr/lib/apache/mod_throttle.so

# LoadModule ticket_module /usr/lib/apache/mod_ticket.so

# LoadModule urlcount_module /usr/lib/apache/mod_urlcount.so

LoadModule php4_module /usr/lib/apache/libphp4.so

LoadModule perl_module /usr/lib/apache/libperl.so

Vielen Dank für Eure Unterstützung bei diesem Problem! :)

Gruß, seb

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.