LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > bug in .htaccess-interpretation? (2.1.1)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2005, 11:06 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default bug in .htaccess-interpretation? (2.1.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?
Reply With Quote
  #2  
Old 09-26-2005, 03:51 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
You can try simply this :
Code:
&#91;...&#93;
<Files ~ "\.prg$">
Order allow,deny
Allow from all
</Files>
(Order changed and without Deny from none)
Reply With Quote
  #3  
Old 09-26-2005, 06:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thomas,

It work pretty well for me. :-)

Looks like it is not because <files> section.

Have you checked the error.log?

George
Reply With Quote
  #4  
Old 09-27-2005, 08:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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!
Reply With Quote
  #5  
Old 09-30-2005, 02:44 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
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*.        -       &#91;C&#93;
RewriteRule &#40;^.*prg$&#41;           /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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect by rewrite & .htaccess slimak Apache Migration/Compatibility 14 01-30-2007 10:02 AM
cPanel migration - .htaccess (sus.page) slimak Apache Migration/Compatibility 8 12-12-2006 08:24 AM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM
.htaccess in 2.1RC3 ts77 Bug Reports 2 09-18-2005 07:53 AM
.htaccess in 2.1RC2 gcisnet Bug Reports 1 08-18-2005 05:41 PM


All times are GMT -7. The time now is 09:09 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.