.htaccessがユーザーのpublic_htmlディレクトリで機能しない

.htaccessがユーザーのpublic_htmlディレクトリで機能しない

私はチュートリアルに従った:http://www.techytalk.info/enable-userdir-apache-module-ubuntu-debian-based-linux-distributions/

ただし、.htaccessはApacheの設定を上書きしません。 userdir.conf の「AllowOverride All」は、ユーザーの public_html ディレクトリに適用されない場合があります。

これは私のApache userdir.confです。

<IfModule mod_userdir.c>
    UserDir public_html www/public_html
    UserDir disabled root

    <Directory /home/*/www/public_html>
    AllowOverride All
    Options MultiViews Indexes SymLinksIfOwnerMatch
    <Limit GET POST OPTIONS>
        # Apache <= 2.2:
            Order allow,deny
            Allow from all

            # Apache >= 2.4:
            #Require all granted
    </Limit>
    <LimitExcept GET POST OPTIONS>
        # Apache <= 2.2:
            Order deny,allow
            Deny from all

        # Apache >= 2.4:
        #Require all denied
    </LimitExcept>
    </Directory>
</IfModule>

ベストアンサー1

おすすめ記事