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.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte auf einem Webserver den Zugriff über htaccess einschränken.


Order deny,allow
Deny from all
Allow from localhost

<Files "index.php">
allow from all
</Files>
[/code]

Als DirectoryIndex habe ich index.php gesetzt. Leider wird der Zugriff direkt verweigert auf http://www.meinedomain.de/.

Anscheinend wid htaccess vor DirectoryIndex abgearbeitet. Kann man das ändern?

Frank

  • Autor

Hallo,

hier die httpd.conf und das Errorlog.


<Directory "/.../html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
php_admin_value display_errors on
</Directory>
[/code]
[code]
[Mon Dec 26 10:16:19 2011] [error] [client 192.168.x.x] client denied by server configuration: /.../portal/

  • Autor

Darum habe ich auch ja auch ein allow from all für die index.php. Wenn ich die index.php direkt aufrufe, dann funktioniert ja auch alles.

Nur wenn auf das Verzeichnis ohne Datei zugegriffen wird, dann kommt ja eigentlich DirectroyIndex zu Zuge. Aber da kommt direkt ein 403

Ich habe das mal nachgespielt, scheinbar ist es dem Indianer egal, ob du den DirectoryIndex auf eine Datei setzt, die von überall erlaubt ist. Solange du auf dem Verzeichnis die Einschränkungen hast.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.