Gelöst

httpd.conf mod_rewrite und htaccess funktionieren nicht in Homepage M

vor 4 Jahren

Ich habe die folgenden Konfigurationen unter /home/www/httpd.conf gespeichert:

 

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_user_module modules/mod_authz_user.so

<Directory /home/www/public_html>
AllowOverride All
AllowEncodedSlashes NoDecode

RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L]
</Directory>

 

Zudem habe ich eine entsprechende htaccess-Datei:

 

AuthName "Bitte anmelden."
AuthType Basic
AuthUserFile /home/www/public_html/wiki/.htpasswd
Require valid-user

 

Allerdings funktioniert weder die Zugriffseinschränkung, noch der Rewrite.

Wie lange dauert es typischerweise, bis die httpd.conf neu geladen wird?

803

0

8

  • Akzeptierte Lösung

    akzeptiert von

    vor 4 Jahren

    Hallo @cms64 ,

    die "httpd.conf" gehört in den Ordner "etc".

    Ich verlinke Dir mal die Hilfe dazu: https://homepagecenter.telekom.de/index.php?id=277

    MfG. Bernd

    5

    Antwort

    von

    vor 4 Jahren

    Zu früh gefreut. Es gab zwar eine Veränderung, allerdings ein Fehler ("Internal Server Error"). Ich dachte diesen würde ich schon korriegiert bekommen, aber es funktioniert nun immer noch nicht. Ich habe mittlerweile die httpd.conf folgendermaßen abgeändert.

     

    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authz_user_module modules/mod_authz_user.so
    <Directory /home/www/public_html/wiki>
    AllowEncodedSlashes NoDecode
    AuthType Basic
    AuthName "Geschuetzter Bereich"
    AuthUserFile /home/www/etc/htpasswd.txt
    Require valid-user
    </Directory>

     

    Sowohl etc/htpasswd.txt als auch das public_html/wiki-Verzeichnis existieren. Das habe ich geprüft.

    0

    Antwort

    von

    vor 4 Jahren

    @cms64,

    ob die Funktion bei uns unterstützt wird kann ich so leider nicht sagen. Aber ich werde dazu mal eine Anfrage bei den Kollegen stellen. Sobald ich was weiß, melde ich mich wieder hier.

    Gruß
    Stephie G.

    0

    Antwort

    von

    vor 4 Jahren

    Hallo @cms64,

    die Rückmeldung ist da. Eigentlich müsste die korrekte Zeile "AllowEncodedSlashes On" oder eben "AllowEncodedSlashes Off" lauten. Dies kannst Du auch unter https://httpd.apache.org/docs/2.4/de/mod/core.html nachlesen. Wenn Du AllowEncodedSlashes nicht verwenden möchtest, muss auch nichts verändert werden.

    Gruß
    Stephie G.

    0

    Uneingeloggter Nutzer

    Antwort

    von

Das könnte Ihnen auch weiterhelfen

Beliebte Tags letzte 7 Tage

Keine Tags gefunden!

Cookies and similar technologies

We use cookies and similar technologies (including ) on our website to save, read out and process information on your device. In doing so, we enhance your experience, analyze site traffic, and show you content and ads that interest you. User profiles are created across websites and devices for this purpose. Our partners use these technologies as well.


By selecting “Only Required”, you only accept cookies that make our website function properly. “Accept All” means that you allow access to information on your device and the use of all cookies for analytics and marketing purposes by Telekom Deutschland GmbH and our partners. Your data might then be transferred to countries outside the European Union where we cannot ensure the same level of data protection as in the EU (see Art. 49 (1) a GDPR). Under “Settings”, you can specify everything in detail and change your consent at any time.


Find more information in the Privacy Policy and Partner List.


Use of Utiq technology powered by your telecom operator


We, Telekom Deutschland GmbH, use the Utiq technology for digital marketing or analytics (as described on this consent notice) based on your browsing activity across our websites (only if you are using a supported internet connection provided by a participating telecom operator and consent on each website).

The Utiq technology is privacy centric to give you choice and control.

It uses an identifier created by your telecom operator based on your IP address and a telecom reference such as your telecom account (e.g., mobile number).

The identifier is assigned to the internet connection, so anyone connecting their device and consenting to the Utiq technology will receive the same identifier. Typically:

  • on a broadband connection (e.g., Wi-Fi), the marketing or analytics will be performed based on the browsing activities of consenting household members’.
  • on mobile data, the marketing will be more personalised, as it will be based on the browsing of the individual mobile user only.

By consenting, you confirm that you have permission from the telecom account holder to enable the Utiq technology on this internet connection.

You can withdraw this consent anytime via "Manage Utiq" at the bottom of this site or in Utiq’s privacy portal (“consenthub”). For more, see Utiq's privacy statement.