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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Periodic .htaccess "Updating configuration" causing mod_rewrite failures

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2013, 11:50 AM
Bryon Bryon is offline
New Member
 
Join Date: Jun 2012
Posts: 1
Default Periodic .htaccess "Updating configuration" causing mod_rewrite failures

Hi,

We're having an issue with LSWS 4.2.1 using Apache-style configuration directives that is often affecting at least one virtual host (possibly many more, but only one report).

The virtual host contains an .htaccess file with a few basic mod_rewrite directives:

Code:
Options +FollowSymlinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

ErrorDocument 404 /page-unavailable/
These rewrite rules work fine normally. However, about twice per day (at seemingly random times), daily, the rewrite rule begins failing for every request. It is as if it has been removed from the .htaccess file entirely. Approximately 15-25 minutes later, the rewrite rule begins functioning again without *any changes* made to the web server, virtual host, account, or .htaccess file.

Here is an annotated portion of the error_log file showing this occurring, which has been edited for brevity and privacy:

Code:
2013-01-13 20:29:01.032 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
2013-01-13 20:42:05.410 [INFO] [HTAccess] Updating configuration from [/home/REDACTED/public_html/REDACTED/jobs/.htaccess]
[issue appears]
2013-01-13 20:42:10.611 [INFO] [184.19.15.77:52668-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/rss/all/]
2013-01-13 20:42:10.611 [INFO] [184.19.15.77:52668-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/404.shtml]
2013-01-13 20:42:19.041 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
2013-01-13 20:51:32.324 [INFO] [72.204.6.189:50545-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/post/]
2013-01-13 20:51:32.324 [INFO] [72.204.6.189:50545-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/404.shtml]
[.. snip lots of 404 error lines ..]
2013-01-13 21:00:08.968 [INFO] [72.204.6.189:50596-11#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/404.shtml]
2013-01-13 21:06:32.460 [INFO] [66.249.73.41:48685-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/search/subscribers|]
2013-01-13 21:06:32.460 [INFO] [66.249.73.41:48685-0#APVH_REDACTED] File not found [/home/REDACTED/public_html/REDACTED/jobs/404.shtml]
2013-01-13 21:09:25.712 [INFO] [HTAccess] Updating configuration from [/home/REDACTED/public_html/REDACTED/jobs/.htaccess]
[issue disappears]
2013-01-13 21:09:39.048 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
2013-01-13 21:09:59.036 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
2013-01-13 21:30:07.959 [INFO] [HTAccess] Updating configuration from [/home/REDACTED/public_html/REDACTED/jobs/.htaccess]
2013-01-13 21:32:41.057 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
2013-01-13 21:33:11.049 [NOTICE] [APVH_REDACTED_Suphp:] stop worker processes
The specific .htaccess file that this is happening with is: /home/REDACTED/public_html/REDACTED/jobs/.htaccess

This is the only mod_rewrite in use for the directory or virtual host - There are none in the parent directories.

I've analyzed the LSWS restart logs and I do not see any indication that this is being triggered by any sort of {graceful, hard} restart of the LiteSpeed service.

LiteSpeed Web Server 4.2.1 is in use, which is the most recent version as far as I can see.

Please advise!

Last edited by Bryon; 01-15-2013 at 12:00 PM..
Reply With Quote
  #2  
Old 01-15-2013, 12:09 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
enable rewrite logging (add 'RewriteLogLevel 9' to httpd.conf vhost section) and grep 'REWRITE' from /usr/local/apache/logs/error_log to see what is going on.
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 11:02 PM.



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