Trouble with SSI on Wamp Server 2.5
Posted by: Passiflora (---.pppoe-dynamic.High-Speed.ns.bellaliant.net)
Date: October 14, 2014 01:39AM

Operating System: Windows 8.1
Wamp Server 2.5,
Apache 2.4.9
MySQL 5.6.17
PHP 5.5.12
WampManager icon: green

<!--#include virtual="myfile.txt"-->
CSS styles attached to html files.
I created an Alias directory that I can see under “Your Aliases”
When I click from alias at local host, both Firefox and Internet Explorer don’t show the SSI file in the page.
I followed some instructions for setting up SSI on Wamp Server but they don’t work.
Module SSI is ON.
What I should do?
Thanks

Options: ReplyQuote
Re: Trouble with SSI on Wamp Server 2.5
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 14, 2014 10:37AM

Please show your wamp\alias\YOUR_ALIAS.conf file.


This should help. Apache Documentation

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Trouble with SSI on Wamp Server 2.5
Posted by: Passiflora (---.pppoe-dynamic.High-Speed.ns.bellaliant.net)
Date: October 14, 2014 04:11PM

System: Windows NT NONE 6.2 build 9200 (Windows 8 Home Premium Edition) AMD64
(64bits)

Following Apache Docs I modified *.conf as I show:

I'm working with *.html files.
Each time I restarted the services and SSI is not working.

I have the follow configuration in my site alias:

Alias /mysite.com/ "c:\wamp\www\mysite.com\/"

<Directory "c:\wamp\www\mysite.com\/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
#
# 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
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
Options +Includes
AddType text/html .shtml .html
Options +Indexes +FollowSymLinks +Includes
AddOutputFilter INCLUDES .html .shtml
XBitHack on
</Directory>

Also I tried:

<Directory "c:/wamp/www/">
#
# 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
# [httpd.apache.org]
# for more information.
#
#Options Indexes FollowSymLinks
Options +Includes
AddType text/html .shtml .html
Options +Indexes +FollowSymLinks +Includes
AddOutputFilter INCLUDES .html .shtml
XBitHack on


# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml .html
AddHandler server-parsed .shtml .html
AddOutputFilter INCLUDES .shtml .html
XBitHack on
</IfModule>

Thanks

Options: ReplyQuote


Sorry, only registered users may post in this forum.