Apache - How to include server side include ssi on virtualhost, Enable SSI on my domain
How to include server side include ssi on virtualhost
How to include Server Side Include SSI on virtualhost
Q.How do I configure Apache Server Side Include(SSI)?
A. SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology.
Make sure you have following configuration directive/line in your .htaccess or httpd.conf file:
# vi /etc/httpd/httpd.conf OR # vi .htaccess
Add following directive:
Options +Includes
Above directive (Options +Includes) tells Apache that you want to permit files to be parsed for SSI directives.
Next, make sure Apache knows which files should be parsed using SSI.
AddType text/html .shtml AddHandler server-parsed .shtmlSave the file and Restart Apache.
Now test your configuration by adding any one of the following SSI directive:
# vi test.shtml
Append any one of the following SSI directive:
<!--#echo var="DATE_LOCAL" --> OR <!--include file="counter.cgi"-->
The topic on Apache - How to include server side include ssi on virtualhost is posted by - Veen
Hope you have enjoyed, Apache - How to include server side include ssi on virtualhostThanks for your time