Hi. I was wondering if there was a way to modify the base path in ASP to point to a folder outside the normal site hierarchy.
What I mean is this:
Lets say I have FCKEditor in an ASP form like so:
<%
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Create "MyField"
%>
I would like to put FCKEditor in a secured folder where I keep the databases. I want to change the basepath to:
oFCKeditor.BasePath = "/../secured/FCKeditor/"
Right now, that doesn't work, it ignores the double dots and just appends the 'secured' to the request.
For example, my webserver hard drive folder tree looks like this:
D:\webs\MyDomain
D:\webs\secured
The website www.mydomain.com is linked to D:\webs\mydomain
If I try and use the path as described above (i.e. /../secured/FCKeditor) it merely appends this to the current request and I end up with a 404 error: as the site tries to get 'http://www.MyDomain.com/secured/FCKeditor' instead of moving back a folder and looking in the correct path.
The 'secured' folder is no linked to any websites, but where I keep all databases and other files I don't want to be directly accessed from the web.
Is there a way to do this? Does the basepath have to point to a location that is accessible via the web? If so, can we not just point it to a URL (i.e. setup a secondary site like www.MySecuredDomain.com and put that in the basepath (i.e. oFCKeditor.BasePath = "http://www.MySecuredDomain.com/FCKeditor/")?
Thanks in advance.
Fri, 02/27/2009 - 10:38
#1