apache2 and .htaccess

Tony Arnold tony.arnold at manchester.ac.uk
Mon Jun 4 22:08:13 UTC 2007


Michael,

Michael Satterwhite wrote:
> 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

this is getting beyond my knowledge, but looking at the documentation
for the AddHandler directive, the first argument is a hander name rather
than a MIME type. Could that be the problem?

Also, are there any error in the error log that help?

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold




More information about the ubuntu-users mailing list