Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

having probs with ../ and / relative paths

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  When browsing local website the file open dialog ..  
Author Message
jose

External


Since: Jun 18, 2004
Posts: 6



(Msg. 1) Posted: Wed Jun 23, 2004 8:39 pm
Post subject: having probs with ../ and / relative paths
Archived from groups: microsoft>public>inetserver>iis (more info?)

I moved an asp site from iis5 to iis6

now im getting errors saying ../ and / arent allowed.

How do I change my relative path to work with iis 6?

Such a basic thing, but it seems the more basic, the harder to find
answers...

thanks
jose

 >> Stay informed about: having probs with ../ and / relative paths 
Back to top
Login to vote
public_news

External


Since: Jun 20, 2004
Posts: 7



(Msg. 2) Posted: Wed Jun 23, 2004 9:01 pm
Post subject: Re: having probs with ../ and / relative paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In the Vdir Properties/Configuration/Options check the box "Enable Parent
Paths"

--
Alex Feinman
---
Visit <a style='text-decoration: underline;' href="http://www.opennetcf.org" target="_blank">http://www.opennetcf.org</a>
"jose" <jose RemoveThis @papugai.com> wrote in message
news:%23BaznPYWEHA.2816@TK2MSFTNGP11.phx.gbl...
 > I moved an asp site from iis5 to iis6
 >
 > now im getting errors saying ../ and / arent allowed.
 >
 > How do I change my relative path to work with iis 6?
 >
 > Such a basic thing, but it seems the more basic, the harder to find
 > answers...
 >
 > thanks
 > jose
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: having probs with ../ and / relative paths 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 3) Posted: Thu Jun 24, 2004 5:07 am
Post subject: Re: having probs with ../ and / relative paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 23 Jun 2004 17:39:58 -0700, "jose" <jose.DeleteThis@papugai.com> wrote:

 >I moved an asp site from iis5 to iis6
 >
 >now im getting errors saying ../ and / arent allowed.
 >
 >How do I change my relative path to work with iis 6?
 >
 >Such a basic thing, but it seems the more basic, the harder to find
 >answers...

Easy enough if you Google:

Enable Parent Paths Is Disabled by Default in IIS 6.0:
<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;332117" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;EN-US;332117</a>

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: having probs with ../ and / relative paths 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 4) Posted: Thu Jun 24, 2004 10:08 am
Post subject: Re: having probs with ../ and / relative paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

From:
<a style='text-decoration: underline;' href="http://www2.ilopia.com/Windows+Server+2003/FAQ/IIS/87.aspx" target="_blank">http://www2.ilopia.com/Windows+Server+2003/FAQ/IIS/87.aspx</a>


I cannot use <!--#include file="../myfile.asp"--> in my asp file. I
get this error (or similar):
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/folder1/folder2/default.asp, line 3
The Included file '../test.asp' cannot contain '..' to indicate the
parent directory.

IIS 6 is locked down by default. Parent Paths is a way for a hacker to
navigate to a folder on the web server that has execute permissions, and in
that way execute scripts that you normally shouldn't and wouldn't execute.
If you enable this, make sure that you do not give execute permissions to a
parent folder. To enable Parent Paths, follow these steps:

a.. Click Start->Programs->Administrative Tools->Internet
Information Services
b.. Expand Web Sites and right click the web site you want to enable
this for (i.e Default Web Site), click Properties
c.. Click the Home directory tab and click the Configuration button
d.. Click on the Options tab
e.. Check the box Enable Parent Paths



--
Regards,
Kristofer Gafvert - IIS MVP
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!


"jose" <jose.TakeThisOut@papugai.com> wrote in message
news:%23BaznPYWEHA.2816@TK2MSFTNGP11.phx.gbl...
 > I moved an asp site from iis5 to iis6
 >
 > now im getting errors saying ../ and / arent allowed.
 >
 > How do I change my relative path to work with iis 6?
 >
 > Such a basic thing, but it seems the more basic, the harder to find
 > answers...
 >
 > thanks
 > jose
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: having probs with ../ and / relative paths 
Back to top
Login to vote
jose

External


Since: Jun 18, 2004
Posts: 6



(Msg. 5) Posted: Thu Jun 24, 2004 1:33 pm
Post subject: Re: having probs with ../ and / relative paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thank you all very much!

-Jose


"jose" <jose.DeleteThis@papugai.com> wrote in message
news:%23BaznPYWEHA.2816@TK2MSFTNGP11.phx.gbl...
 > I moved an asp site from iis5 to iis6
 >
 > now im getting errors saying ../ and / arent allowed.
 >
 > How do I change my relative path to work with iis 6?
 >
 > Such a basic thing, but it seems the more basic, the harder to find
 > answers...
 >
 > thanks
 > jose
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: having probs with ../ and / relative paths 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]