View Single Post
Old July 28th, 2005   #5
orlando_nick
First Cup of Ubuntu
 
Join Date: Jul 2005
Beans: 7
Re: Enable .htaccess in Apache2

Found the solution!! Apache2 in general, or it might be specifically to Ubuntu, is configured slightly differently than Apache1.x.. at least from what I've seen in the default installs in RH, FC, Mandrake, etc (I'm not Linux or Apache expert).

I went to /etc/apache2/sites-available and edited the file default
There you'll find:

Code:
NameVirtualHost *
<VirtualHost *>
        ServerAdmin admin@site.com

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                # Commented out for Ubuntu
                #RedirectMatch ^/$ /apache2-default/
        </Directory>
Default for AllowOverride is none, should be all
/etc/init.d/apache2 restart to restart apache and your .htaccess files should now work!! How frustrating, but educational

Last edited by orlando_nick; July 28th, 2005 at 01:54 PM..
orlando_nick is offline   Reply With Quote