This doesn't work: <img src=images/my.gif>, but this does: <img src=my.gif>. Why would I have to put the images on the root directory for them to display? My other servers don't require such, so it must be an IIS configuration issue with this particular
server, but what?
arichiis
2 Posts
Images only display when on the root directory.
Aug 06, 2011 10:54 PM|LINK
This doesn't work: <img src=images/my.gif>, but this does: <img src=my.gif>. Why would I have to put the images on the root directory for them to display? My other servers don't require such, so it must be an IIS configuration issue with this particular server, but what?
HCamper
8048 Posts
Re: Images only display when on the root directory.
Aug 06, 2011 11:55 PM|LINK
Hello,
You did not say which IIS Server your using I will assume IIS 7 for the references.
Yes, There have been changes in security and "Parent Paths" are disabled by "Default".
In the IIS Net Library this http://learn.iis.net/page.aspx/566/classic-asp-parent-paths-are-disabled-by-default/
is description and examples.
In the IIS Net Library this http://www.iis.net/ConfigReference/system.webServer/asp/limits reference
and Figure 4 has the settings for IIS Manager (Magnify) the image to see more detail.
If you "Enable Parent" paths restart the IIS Server.
Martin
Community Member Award 2011
arichiis
2 Posts
Re: Images only display when on the root directory.
Aug 07, 2011 05:21 AM|LINK
HCamper
8048 Posts
Re: Images only display when on the root directory.
Aug 07, 2011 05:53 AM|LINK
Hi,
Sorry did not know IIS Version.
The "Parent Paths" in IIS 6.0 are disabled by Default http://support.microsoft.com/kb/332117 Microsoft Article.
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: Images only display when on the root directory.
Aug 11, 2011 05:23 AM|LINK
Hello,
The "Parent Paths" is disabled by "default" in Windows 2003 and IIS 6.0 server as a Security Restriction.
The "Default" for IIS 7.0 IIS 7.5 also have "Parent Paths" disabled for the same Security Restrictions.
In IIS Server(s) you can enable "Parent Paths" at the same time you should understand the risks.
Martin
Community Member Award 2011