Difference between revisions of "Apache"
Jump to navigation
Jump to search
(Removed redirect to Apache dan Mysql) Tag: Removed redirect |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | ===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 | ||
| + | |||
| + | |||
===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