Difference between revisions of "Apache"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
Ubah | Ubah | ||
<Directory /var/www/> | <Directory /var/www/> | ||
| − | + | Options Indexes FollowSymLinks | |
| − | + | AllowOverride None | |
| − | + | Require all granted | |
</Directory> | </Directory> | ||
| Line 13: | Line 13: | ||
<Directory /var/www/> | <Directory /var/www/> | ||
| − | + | Options Indexes FollowSymLinks | |
| − | + | AllowOverride All | |
| − | + | Require all granted | |
</Directory> | </Directory> | ||
| − | + | Enabled apache mod rewrite | |
| − | + | sudo a2enmod rewrite | |
| − | |||
| + | Restart apache | ||
| + | systemctl restart apache2 | ||
| + | |||
===Pranala Menarik=== | ===Pranala Menarik=== | ||
[[Apache dan MySQL]] | [[Apache dan MySQL]] | ||
Latest revision as of 12:09, 12 October 2022
Setting htaccess
Edit file
sudo vi /etc/apache2/apache2.conf
Ubah
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
Menjadi
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
Enabled apache mod rewrite
sudo a2enmod rewrite
Restart apache
systemctl restart apache2