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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > modsec on shared server

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2012, 01:45 AM
hd-sam hd-sam is offline
Member
 
Join Date: Nov 2010
Posts: 22
Default modsec on shared server

Hi,

I'm running 4.1.12. I've noticed modsec is working on most accounts on our shared server, but not on some of them. It's very odd...

I'm throwing this out there, but I noticed it works on all WordPress sites that have a working .htaccess file.

It doesn't seem to be working on standard html sites. However it does work properly when I switch to apache

My method for testing this is by running:
http://domain.com/foo.php?foo=http://www.example.com

If the above gives 404 modsec is not working
If it gives a 403 then it is working, and I have verified this by watching the error_log which displays the activated modsec rule

Any ideas?

[UPDATE]
I have actually verified this.
I added an empty index.php file to an account that was not working. (this account has basic html files).
I also added an .htaccess file containing the basic wordpress .htaccess file of :
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond &#37;{REQUEST_FILENAME} !-f
RewriteCond &#37;{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
After I've done that and test modsec again it creates a 403 error and appears to be working..
As soon as I remove the .htaccess file or index.php file, it stops working and displays a 404 instead.

Again, this is tested by looking to see if a 404 or 403 error appears on this URL: http://domain.com/foo.php?foo=http://www.example.com

Last edited by hd-sam; 05-11-2012 at 01:58 AM..
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


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



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