• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

timefmt not working in SSI

M

MattElmore

Guest
SSI seems to be working fine, however the timefmt flags are not configuring the format
Running on FreeBSD
 
Found the cause, and a workaround for this. :cool:

The cause:
The apache 2.x branch breaks the timefrmt directive in .shtml files (note: the 1.3 branch is not affected). :mad:

The workaround:
Add the following to a .htaccess file in the site you want to use timefrmt to enable SSI parsing of .html files and then place your SSI calls inside a .html file. :)

AddType text/html .html
AddHandler server-parsed .html

The drawback:
All .html files will now be parsed for SSI thereby slowing down the site :(
 
Back
Top