views:

388

answers:

2

Hi,

I've installed ServerSideIncludes module on my computer and it works great with one exception.

<!--#include virtual="meta.inc" -->

The line above is causing the problem. I know I must change virtual with file but I have a huge website and it means I must change at least 1000 line of code like this and I am looking for a way to run virtual properly in IIS 7.

I've been looking for this solution but all I've been able to find the solution I've mentioned above.

Do you know how to solve this problem without changing the virtual to file

Thanks.

+1  A: 

Do you have parent paths enabled over your site? Navigate to the "ASP" section of your site in IIS and select "Enable Parent Paths" in the "Behavior" section and see if that helps.

The Parent Paths option permits you to use ".." in calls to functions such as MapPath by allowing paths that are relative to the current directory using the ..\notation. Setting this property to True may constitute a security risk because an include path can access critical or confidential files outside the root directory of the application.

Jakkwylde
I can't see such thing in my IIS and I am not using classic Asp btw.
Braveyard
http://learn.iis.net/page.aspx/566/classic-asp-parent-paths-are-disabled-by-default/reference about 1/2 way down on the page
Jakkwylde
Even it looks appropriate for this question, it wouldn't work :(
Braveyard
+1  A: 

SSI is not ASP -- they're different technologies.

I have found that each time Microsoft releases a new version of any of their products that sometimes certain features that worked in previous versions work differently or not at all in the newer versions, and it looks like this problem may be one of those.

So, you might want to consider switching to Apache HTTPd (if you can) and then you won't need to make all those changes to your files -- I've found that Apache has been consistent in their support for SSI (and other technologies/modules, configuration directives, etc.) in all versions of HTTPd that support it. This consistency is one of the reasons I really like it.

Randolf Richardson