Download
Blog
Wiki
Forum
Store
Contact
Home
Products
Web Server
Load Balancer
LiteSpeed SAPI
Solutions
Web Hosting
Online Gaming
PHP Application
Rails Hosting
Case Studies
Resources
Documentation
White Papers
Benchmarks
Testimonials
FAQ
HOW-TOs
Support
Services
Wiki
Forum
Company
About
News
Blog
Management
Partners
Careers
Support
Services
Wiki
Forum
User Name
Password
Remember Me?
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LiteSpeed Support Forums
>
LiteSpeed Web Server
>
General
>
mod_sec SCRIPT_BASENAME not working?
Thread Tools
Display Modes
#
1
03-08-2012, 08:37 AM
optize
Senior Member
Join Date: Feb 2010
Posts: 121
mod_sec SCRIPT_BASENAME not working?
I have a simple mod_sec rule to block spam.html:
SecRule SCRIPT_BASENAME "spam\.html" "t:none,deny"
This works fine in Apache, however it doesn't trigger on Litespeed.
Is this a known issue?
optize
View Public Profile
Send a private message to optize
Find all posts by optize
#
2
03-08-2012, 03:04 PM
webizen
LiteSpeed Staff
Join Date: Oct 2010
Posts: 2,337
litespeed skips modsec rules for static file like *.html as it would not cause any real issue. so it is by design not an overlook or bug.
webizen
View Public Profile
Send a private message to webizen
Find all posts by webizen
#
3
03-08-2012, 03:05 PM
optize
Senior Member
Join Date: Feb 2010
Posts: 121
Quote:
Originally Posted by
webizen
litespeed skips modsec rules for static file like *.html as it would not cause any real issue. so it is by design not an overlook or bug.
Is there a way to turn it on? I need mod_sec to work on all file types.
optize
View Public Profile
Send a private message to optize
Find all posts by optize
#
4
03-08-2012, 04:00 PM
webizen
LiteSpeed Staff
Join Date: Oct 2010
Posts: 2,337
use workaround like followings:
Quote:
<Files ~ "spam.html">
Order allow,deny
Deny from all
Satisfy All
</Files>
<FilesMatch "\.php">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
webizen
View Public Profile
Send a private message to webizen
Find all posts by webizen
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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 Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General
News
Use Cases
LiteSpeed Web Server
General
Install/Configuration
LiteSpeed Cache
Feedback/Feature Requests
Bug Reports
LSWS 4.1 Release
LiteSpeed Load Balancer
General
LiteSpeed Anti-DDoS
Proxy Service
Popular web applications
Word Press
vBulletin Forum
Joomla
Magento
External Applications
Apache Migration/Compatibility
Ruby/Rails
PHP
CGI/Perl/Python
Java JSP/Servlet
All times are GMT -7. The time now is
11:06 AM
.
-
Archive
-
Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved.
Privacy Policy
.