raymccoy's picture

Hello,

i want to enable mod_rewrite on my turnkey lamp installation. I did this:

a2enmod rewrite

service apache2 restart

 

but it still doesn't work for me!!

Can anybody help me? or should i switch to mamp?

Forum: 
raymccoy's picture

Hello, i found this solution:

/etc/apache2/sites-enabled/000-default

almost at the top you will find

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

Change the AllowOverride None to AllowOverride All

 

Some other say:

Don't use AllowOverride All as it will enable too many dangerours features (like using perl scripts). Instead use AllowOveride Options

 

Is there an expert?

Jeremy Davis's picture

I am not aware of any significant security implications of using AllowOverride All in your Apache config. That is, so long as your Directory block is for the specific directory you wish to host content from. The directory block in your example uses /var/www/. That should be fine, so long as there is nothing within /var/www that you don't want Apache to be able to host.

If anyone has anything else to add, I'd be happy to hear about it.

Add new comment