Re[2]: SSI error message

2005-09-25 Thread Gerard Seibert
On Sun, 25 Sep 2005 15:40:21 -0700, Glenn Dawson [EMAIL PROTECTED]
Subject: Re: SSI error message
Wrote these words of wisdom:

 At 03:22 PM 9/25/2005, Gerard Seibert wrote:
 I inserted the XBitHack on statement into a .htaccess to turn on 
 the SSI function. I then made the necessary modification to the 
 httpd.conf file so that the file would be used. Now, I receive this 
 error message in the httpd-error.log and I have no idea how to correct it.
 
 [Sun Sep 25 18:14:40 2005] [warn] [client 216.45.217.148] 
 mod_include: Options +
 Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
 [Sun Sep 25 18:14:40 2005] [warn] [client 216.45.217.148] 
 mod_include: Options +
 Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
 
  From the apache docs on mod_include:
 
 The following directive must be given for the directories containing 
 the shtml files (typically in a Directory section, but this 
 directive is also valid .htaccess files if AllowOverride Options is set):
 Options +Includes
 
 -Glenn


* REPLY SEPARATOR *
On 9/25/2005 7:19:40 PM, Gerard Seibert Replied:

Yes, I figured out that I had not set the 'Options' directive correctly.
I corrected it, and got SSI working. However, I now have a slightly
different situation. I wanted to get the date formatted correctly on my
site. I tried this, but it does not work correctly:

!--#config timefmt=%m/%d/%y -- !--#echo var=DATE_LOCAL --

the date is still displayed in the long format, along with the time. I
do not understand why. I copied this directly from a site that was
demonstrating how to use SSI to display the date or time in any format
desired. For some reason, it does not work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: SSI error message

2005-09-25 Thread Glenn Dawson

At 04:24 PM 9/25/2005, Gerard Seibert wrote:

On Sun, 25 Sep 2005 15:40:21 -0700, Glenn Dawson [EMAIL PROTECTED]
Subject: Re: SSI error message
Wrote these words of wisdom:

 At 03:22 PM 9/25/2005, Gerard Seibert wrote:
 I inserted the XBitHack on statement into a .htaccess to turn on
 the SSI function. I then made the necessary modification to the
 httpd.conf file so that the file would be used. Now, I receive this
 error message in the httpd-error.log and I have no idea how to 
correct it.

 
 [Sun Sep 25 18:14:40 2005] [warn] [client 216.45.217.148]
 mod_include: Options +
 Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
 [Sun Sep 25 18:14:40 2005] [warn] [client 216.45.217.148]
 mod_include: Options +
 Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed

  From the apache docs on mod_include:

 The following directive must be given for the directories containing
 the shtml files (typically in a Directory section, but this
 directive is also valid .htaccess files if AllowOverride Options is set):
 Options +Includes

 -Glenn


* REPLY SEPARATOR *
On 9/25/2005 7:19:40 PM, Gerard Seibert Replied:

Yes, I figured out that I had not set the 'Options' directive correctly.
I corrected it, and got SSI working. However, I now have a slightly
different situation. I wanted to get the date formatted correctly on my
site. I tried this, but it does not work correctly:

!--#config timefmt=%m/%d/%y -- !--#echo var=DATE_LOCAL --

the date is still displayed in the long format, along with the time. I
do not understand why. I copied this directly from a site that was
demonstrating how to use SSI to display the date or time in any format
desired. For some reason, it does not work.


Those assume that your web server is setting DATE_LOCAL in it's 
environment, and that it's paying attention to what you set timefmt to be.


You can do somthing like:

!--#exec cmd=/bin/date +%m/%d/%y --

-Glenn


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]