bug in .htaccess-interpretation? (2.1.1)

ts77

Well-Known Member
#1
I have that section in my .htaccess-file:
Code:
Options +ExecCGI
DirectoryIndex viewer.prg
Order allow,deny
Allow from none
Deny from all
<Files ~ "\.prg$">
Order deny,allow
Deny from none
Allow from all
</Files>
That should allow only .prg-files as far as I understand (that file was distributed from the vendor that sold the cms).
Before lsws 2.1 that worked without problems but now I still get a "forbidden"-reply as if the files-section is not working.

any ideas?
 

IO

Active Member
#2
You can try simply this :
Code:
[...]
<Files ~ "\.prg$">
Order allow,deny
Allow from all
</Files>
(Order changed and without Deny from none)
 

mistwang

LiteSpeed Staff
#4
I got another report that .htaccess stop working after LSWS run for a while, please try a restart, see if it works for a while, then stop working again.

Thanks!
 

ts77

Well-Known Member
#5
Sorry, I hadn't have time to test it out further until today.

Thanks for your suggestions but both don't work.
The change from IO didn't change anything and it also doesn't stop after a while, it just never works ;).

I could track it down now to being related to the .htaccess-file in the directory above.
Once I remove the rewrite-rules in the .htaccess-file in the directory above it gives me access (as requested by the .htaccess-file) but the rewrites just don't work then.

the rewrites are as follows (just anonymized):
Code:
RewriteEngine on
RewriteRule !.*xxx*.        -       [C]
RewriteRule (^.*prg$)           /cgi-tdb/xxx/xxx/efwm4/programm/$1
also I got a core-dump while playing with this stuff but that one will be sent by mail :).

Error-log only tells
2005-09-30 11:42:08.823 [INFO] [xxx.xxx.163.80:1760-0#domain.de][ACL] Access to context [/xxx/programm/] is denied!



thx
 
Top