Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

setting up apache to read .htaccess

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


mkalastro at soe

Dec 19, 2001, 7:50 PM

Post #1 of 3 (348 views)
Permalink
setting up apache to read .htaccess

Apache 1.3.22 isn't seeing my .htaccess files, and I think I've got the config
correct. It's readable by apache. Are there other config directives that
effect .htaccess files?

AllowOverride All
AccessFileName .htaccess

I'm starting to think my apache build's broken. Any help appreciated!

Thanks a lot,
Matt

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


obo at bourse

Dec 20, 2001, 1:36 AM

Post #2 of 3 (327 views)
Permalink
Re: setting up apache to read .htaccess [In reply to]

Matthew Kalastro wrote:
>
> Apache 1.3.22 isn't seeing my .htaccess files, and I think I've got the config
> correct. It's readable by apache. Are there other config directives that
> effect .htaccess files?
>
> AllowOverride All
> AccessFileName .htaccess

Could be a few things:

- Check that the directives you want to use are actually allowed in the
context of .htaccess.

- AccessFileName can't go in a <Directory> container, but since you have
set this to its default value, this probably doesn't matter.

- AllowOverride has to go in a <Directory> container, so the directives
you quote above should never be consecutive as you have shown.

- Multiple <Directory> containers which refer to the same directory
(even by inheritance) are combined according to a logical set of rules.
If you are not aware of the rules, you may get a surprise. Basically,
more specific <Directory>s override less specific and those at the same
level are processed in order (so last is most important). So, do you
have another <Directory> container which is switching off .htaccess?

You should have something like:

AccessFileName .htaccess
<Directory /path/to/htaccessed/directory>
AllowOverride All
Allow from all
</Directory>

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


tom at blazestudios

Dec 21, 2001, 12:11 AM

Post #3 of 3 (342 views)
Permalink
Re: setting up apache to read .htaccess [In reply to]

And make sure the permissions on your .htaccess file are atleast 755.

Owen Boyle wrote:

>Matthew Kalastro wrote:
>
>>Apache 1.3.22 isn't seeing my .htaccess files, and I think I've got the config
>>correct. It's readable by apache. Are there other config directives that
>>effect .htaccess files?
>>
>> AllowOverride All
>> AccessFileName .htaccess
>>
>
>Could be a few things:
>
>- Check that the directives you want to use are actually allowed in the
>context of .htaccess.
>
>- AccessFileName can't go in a <Directory> container, but since you have
>set this to its default value, this probably doesn't matter.
>
>- AllowOverride has to go in a <Directory> container, so the directives
>you quote above should never be consecutive as you have shown.
>
>- Multiple <Directory> containers which refer to the same directory
>(even by inheritance) are combined according to a logical set of rules.
>If you are not aware of the rules, you may get a surprise. Basically,
>more specific <Directory>s override less specific and those at the same
>level are processed in order (so last is most important). So, do you
>have another <Directory> container which is switching off .htaccess?
>
>You should have something like:
>
>AccessFileName .htaccess
><Directory /path/to/htaccessed/directory>
> AllowOverride All
> Allow from all
></Directory>
>
>Rgds,
>
>Owen Boyle.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe [at] httpd
>For additional commands, e-mail: users-help [at] httpd
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.