Tuesday, January 13, 2015

Enable htaccess in Apache 2.4.7 on Ubuntu

Enable htaccess in Apache 2.4.7 on Ubuntu

open terminal
ctrl+alt+t 
 open etc folder into this open apache2
etc->apache2->apache2.conf 
into this file 
  <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride none
    Require all denied
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
 
First enable rewrite using this command:
sudo a2enmod rewrite
Then restart apache2:
sudo service apache2 restart 
Enjoy :) 

1 comment:

  1. My friend Suggest me this blog and I can say this is the best blog to get the basic knowledge.Thank you so much for this Selenium Training in Chennai

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...