Difference between revisions of "Apache: Enable Mod Rewrite"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 10: | Line 10: | ||
<Directory /> | <Directory /> | ||
Options FollowSymLinks | Options FollowSymLinks | ||
| − | AllowOverride ''' | + | AllowOverride '''All''' |
</Directory> | </Directory> | ||
<Directory /var/www/> | <Directory /var/www/> | ||
Options Indexes FollowSymLinks MultiViews | Options Indexes FollowSymLinks MultiViews | ||
| − | AllowOverride ''' | + | AllowOverride '''All''' |
Order allow,deny | Order allow,deny | ||
allow from all | allow from all | ||
Latest revision as of 05:12, 6 April 2012
Lakukan
a2enmod rewrite
Untuk instalasi social networking yang aman perlu di AllowOverride All
vi /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Jangan lupa restart Apache
/etc/init.d/apache2 restart