apache2 and .htaccess
Michael Satterwhite
michael at weblore.com
Mon Jun 4 18:10:46 UTC 2007
On Monday 04 June 2007 12:11:51 Tony Arnold wrote:
> Michael,
>
> Michael Satterwhite wrote:
> > OK, I'm missing something obvious; I'll admit that up front.
> >
> > I need to process .htaccess on my test server running apache2. The only
> > AllowOverride directives in my apache2.conf read
> > AllowOverride All
> >
> > I In sites-available/default, I have
> > DocumentRoot /var/www/
> > <Directory />
> > Options FollowSymLinks
> > AllowOverride All
> > </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 #RedirectMatch ^/$ /apache2-default/
> > </Directory>
> >
> > My .htaccess file is still not being processed. (I did restart apache2
> > after making these changes). I'm sure what I'm missing is obvious, but I
> > don't see it. Can anyone help?
>
> Do you have the following in your apache2.conf file:
>
> AccessFileName .htaccess
Yes, it's there.
>
> If not, could you post the .htaccess file and say which directory it is in?
The file is in the root directory for this web site. Here it is:
AddHandler application/x-httpd-php .htm
AddHandler application/x-httpd-php .html
AddType application/x-httpd-php .html .php .htm
>
> Regards,
> Tony.
Appreciate the help.
More information about the ubuntu-users
mailing list