Apache: Membuka Sebuah Folder ke Web

From OnnoWiki
Revision as of 07:22, 23 January 2015 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Untuk membuka sebuah folder ke web, misalnya

/var/www/pustaka

Tambahkan di

vi /etc/apache2/sites-enabled/000-default.conf 

Kata-kata

<Directory /var/www/pustaka/>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Require all granted
       allow from all
</Directory>

Ubah ijin

chmod -Rf 650 /var/www/pustaka/
chown -Rf www-data.www-data /var/www/pustaka