Jump to content

Recommended Posts

Posted

I just look to error log files and find next line:

 

>[Thu Mar  3 09:28:36 2005] [alert] [client 217.234.241.2] /home/account/public_html/.htaccess: Missing regular expression for SetEnvIf
[Thu Mar  3 09:28:36 2005] [alert] [client 217.234.241.2] /home/account/public_html/.htaccess: Missing regular expression for SetEnvIf
3 09:13:08 2005] [alert] [client 81.171.3.2] /home/account/public_html/.htaccess: Missing envariable expression for SetEnvIf

 

What it means and where to look forpossible errors?

Posted

The .htaccess file located at /home/account/public_html/.htaccess contains a SetEnvIf directive that is not properly set up.

 

The proper syntax of SetEnvIf is:

SetEnvIf attribute regex env-variable[=value][env-variable[=value]] ...

This is an example of using SetEnvIf to set an environment variable when an image file is requested:

>SetEnvIf Request_URI "\.gif$" object_is_image=gif
SetEnvIf Request_URI "\.jpg$" object_is_image=jpg
SetEnvIf Request_URI "\.xbm$" object_is_image=xbm

The regex in the SetEnvIf directive ("\.gif$", "\.jpg$", "\.xbm$" in the above examples) tell the web server what condition the attribute (Request_URI in this example - the file path / name) needs to satisfy before setting the environment variable. The error messages showing up in your logs are saying that your SetEnvIf directive has no regex at all (or there is something else wrong that is preventing the web server from reading it properly).

Posted

Thanks but do you mind if i send you PM to look into my .htaccess file becasue i do not see what is wrong.

It is a huge .htaccess!

 

Thanks

Posted

I cannot "look into" your .htaccess file as I do not have access to your account (and do not want access to it). If your .htaccess file is really large, probably the best thing to do is to copy your .htaccess file to a regular file name (like htaccess.txt - no leading "."), then you could PM me with the URL where I can view the file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...