allow .htaccess override

ALLOW .HTACCESS OVERRIDE: APACHE 2.4

For apache 2.4, use AllowOverride 

<virtualhost> 
  ServerAdmin web@example.com 
  ServerName www.example.com 
  ServerAlias example.me 
  DirectoryIndex index.html index.php 
  DocumentRoot /var/www/example.com 
  LogLevel warn 
  ErrorLog /var/www/example.com/log/error.log 
  CustomLog /var/www/example.com/log/access.log combined 

  #allow .htaccess override in the /var/www/html directory
  <directory /var/www/html>
    AllowOverride All 
    Require all granted 
  </directory> 

</virtualhost> 

 

Cookbook Category: 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.