Current time: 11-23-2024, 11:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
modrewrite and logging
Author Message
iRaS Offline
Junior Member
*

Posts: 13
Joined: Mar 2009
Reputation: 0
Post: #1
modrewrite and logging
i think an improvement for ispcp it would be if the domainuser for each domain can define a logging level for each domain/subdomain/domainalias.

often someone creates rewrite rules and wondering why they don't work. but he can not enable logging cause it's only possible in conf files and not in htaccess files.

shure the admin can define special rules for this account. but this will generate a new ticket for each user that would change the logging level..

i simply added this lines to als_entry.tpl dmn_entry.tpl and sub_entry.tpl after the <IfModule cband.c /> part:
Code:
<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteLog {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/rewrite.log
        RewriteLogLevel 3
    </IfModule>

also a button to clear the log file would be suitable. it could simple execute
Code:
echo "" > {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/rewrite.log
03-24-2009 04:39 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: modrewrite and logging
We use a Pipe for the Logs in the new Version because of too many open Files.
In your case, the open files will grow again...
But no bad idea! Maybe we can improve it ?

Greez BeNe
03-24-2009 04:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
iRaS Offline
Junior Member
*

Posts: 13
Joined: Mar 2009
Reputation: 0
Post: #3
RE: modrewrite and logging
shure. it's a just an idea. you can improve it how you want. looking forward to next version Wink
03-24-2009 05:09 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: modrewrite and logging
By the way, RewriteLog gets tons of info, thus slowing down things a LOT. Consequently, allowing users to control it is a really bad idea, as they will enable RewriteLog when something fails but never disable it again after the issue is solved.

IMHO any user playing with the RewriteEngine should locally test their setup before committing to a production server, or they can seriously hurt performance fo the whole server!
03-25-2009 09:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
iRaS Offline
Junior Member
*

Posts: 13
Joined: Mar 2009
Reputation: 0
Post: #5
RE: modrewrite and logging
Quote:Maybe we can improve it ?

how a bout a time limit? rewrite log can just be enabled for 10 minutes after 10 minutes the rewrite log will be disabled and on renabling it the log file will be deleted. so both problems (large log files and slowing down server) will be fixed.
03-26-2009 09:24 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)