Thursday, May 26, 2016

Akses public_html per User

Bila folder public_html Anda tidak bisa diakses dari browser, kemungkinan UserDir di httpd.conf Apache Anda disabled, untuk mengaktifkannya, hilangkan tanda comment # di httpd.conf hingga tampilannya kurang lebih seperti berikut :

<IfModule mod_userdir.c>
   #UserDir disabled
    UserDir "public_html"
</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
   Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
       Deny from all
    </LimitExcept>
</Directory>

Setelah itu, lakukan chmod 0711 pada folder user /home/namauser dan chmod 0755 pada folder public_html, lakukan restart Apache Anda, semoga sukses

No comments:

Post a Comment