uadm

Well-Known Member
May 19, 2003
106
0
166
Hi,

Have a problem seen here before in previous tickets, which they all ended up in "open a ticket please" - no solution.

anywhy:

.htaccess:

Order deny,allow
deny from all

Doesn't work on any directory.

The .htaccess is of course working, I tried with a simple typo in it, and got internal server error, so I know I'm getting to the right place and .htaccess is viewed by apache.

Simply - deny from all - doesn't work.

Unfortunately I can't grant access to cpanel to this server, but since I seen there's an issue going from 2 month ago, I was hoping to get a solution here.

Thanks.
 

uadm

Well-Known Member
May 19, 2003
106
0
166
Ok, I found the problem:

<Location />
<LimitExcept GET POST>
order deny,allow
deny from all
</LimitExcept>
</Location>

in the includes file.

But why would that stop Order to work?
 

uadm

Well-Known Member
May 19, 2003
106
0
166
Hi. It was in global include file, first post-VH then pre-VH. Both disabled Order in .htaccess in all directories.

When removed from includes and put in .htaccess of public_html everything worked fine.


I was wandering if that's a bug in apache, or maybe in cpanel's apache, or a feature I haven't found any document on it.

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,643
2,630
363
cPanel Access Level
Root Administrator
Thanks for that confirmation - this seems like normal behavior to me, as the statements go logically in the order they are read. In your case, it read the include first and processed that "deny from all" so anything added after that wouldn't matter.