Forum Moderators: phranque

Message Too Old, No Replies

Wird error now error.log is huge!

Wird error now error.log is huge !

         

StopSpam

7:25 am on Apr 16, 2003 (gmt 0)

10+ Year Member



i have a script that use the htaccess file
it write bans to it. and comments

now i get error:

[Tue Apr 15 23:54:15 2003] [warn] Apache does not support line-end
comments. Consider using quotes around argument: "#Sun Apr 13 19:12:59
2003#my comments here"

what those apache mean with: . Consider using quotes around argument: ...

what ecactly are quotes? how can i stop my script from making my error log huge. it has same size as access.log but i need the comments in the .htaccess file

i look forward to your comments

Josk

9:11 am on Apr 16, 2003 (gmt 0)

10+ Year Member



Quotes are quotes characters. Eg 'this is quoted'

Fischerlaender

9:12 am on Apr 16, 2003 (gmt 0)

10+ Year Member



Seems to me as if you're doing something wrong with your comments. Here is a snap from [httpd.apache.org...]
Lines which begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on a line after a configuration directive.

If your .htaccess contains comments like

Redirect 301 index.htm [newdomain.com...]  # Redirect to new domain

then you are using line-end comments, which Apache doesn't like.

The part in your error log suggests to use quotation marks around paramters, if a paramter would start with a # (hash) character.

StopSpam

9:34 am on Apr 16, 2003 (gmt 0)

10+ Year Member



so if i understand corectly if i do it liekthis:

Redirect 301 index.htm [newdomain.com...] #' Redirect to new domain'

with the '

then it should not give a error
or should i remove the complete coment line?

Fischerlaender

9:56 am on Apr 16, 2003 (gmt 0)

10+ Year Member



No, you should rewrite your comments like this:
# Redirect to new domain 
Redirect 301 index.htm [newdomain.com...]

The quotes are only needed if a parameter in your .htaccess directive starts with an #.

StopSpam

10:02 am on Apr 16, 2003 (gmt 0)

10+ Year Member



Ok Thx ;-)