Skip to content

Instantly share code, notes, and snippets.

@nim4n136
Last active February 17, 2019 17:39
Show Gist options
  • Save nim4n136/f690956665701ed101b3216cddf3027f to your computer and use it in GitHub Desktop.
Save nim4n136/f690956665701ed101b3216cddf3027f to your computer and use it in GitHub Desktop.
Enable rewrite module apache2 centos

Open

sudo vi /etc/httpd/conf/httpd.conf

Find the section and change AllowOverride None to AllowOverride All.

 <Directory /var/www/html>
    AllowOverride All
 </Directory>

Restart Apache to effect

sudo systemctl restart httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment