Hello,
I am new to Apache and a newbie.
I installed Apache 1.8.3 to test SSI. I started Apache serve and it is Green. I checked the status and it says SSI is Activated.
the httpd.conf file contains this:
------------------------------------------------------
DocumentRoot "C:/xampp2/htdocs"
<Directory "C:/xampp2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
# Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig conf/mime.types
#AddType application/x-gzip .tgz
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi .pl .asp
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
I then created Simple HTML Files and named them .shtml. FIRST OE WAS
-----------------------------------------------------------------------
<body>
<!--#echo var="DATE_LOCAL" -->
</body>
</html>
------------------------------------------------------------------
I save this under try1.shtml
I got a BLANK PAGE
Then I tried the Next file
________________________________________
<body>
<!--#include virtual="incl1.txt" -->
</body>
</html>
_______________________________________
I save this under try2.shtml
I got a BLANK PAGE in GOOGLE-CHROME
in IE10, a new box opened up and asked me if I wanted to save the Download file try2,shtml. NO IE WINDOWS WAS OPENED
Then opened the httpd.conf file and changed "Includes" to +includes"
Stopped Apache and restarted it and got an ERROR
I then Installed a service and restarted Apache and the start JUST HUNG
Then opened the httpd.conf file and changed "+Includes" back "Includes"
and the service restarted with Apache as GREEN and ports as 80,443
But had the same problems when I opened the two files. BTW BOTH FILES are in "C:/xampp2/htdocs/trial" directory
Another thing when I open Windows explorer the .SHTML files have a icon that looks like a Notepad associated with them NOT the IE symbol. I looked under properties of both files and they are tagged and Internet explorer files.