Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

having problems with virtual paths

Status
Not open for further replies.

Floodster

Technical User
Joined
Jan 28, 2005
Messages
204
HI,
I have a site set up in DWMX with the following settings;
Local Root=H:\Research\Projects\Website\
Remote Info
Access=Local/Network
Remote Folder=C:\Inetpub\Testing Server
Server Model=ASP/VBSCRIPT
Access=Local/Network
Testing Server Folder=C:\Inetpub\URL Prefix=
Now in my pages I have some include files which were orignally like this;
Code:
<!--#include file="../includes/includes.asp"-->
but I have since found that this isn't properly supported on live web servers & that using virtual paths is the correct way. So i changed it to;
Code:
<!--#include virtual="/includes/includes.asp"-->

My problem is that when running the pages on the test server it is looking for;
Code:
[URL unfurl="true"]http://localhost/includes/includes.asp[/URL]
instead of;
Code:
[URL unfurl="true"]http://localhost/research/includes/includes.asp[/URL]

Any ideas why this is happening & how I can fix it??
Thanks.
 
Have your hosting company enable parent paths. That should take care of it.

Dodge20
 
Dodge,
I was going to do that but other threads recommend you use virtual paths as this is the correct way??

thanks.
 
There is a bit of a security risk with parent paths described below. I do not have a problem using parent paths. If you do, use virtual paths.

The security risk of parent paths is that intruders can upload and run a script to move up the folder tree. When the script reaches the root, it can move down from there into known folders that might have elevated privileges (e.g., C:\ which has Everyone Full Control permission by default, or C:\winnt\system32).

Dodge20
 
Sorry so to answer your original question

Code:
<!--#include virtual="/research/includes/includes.asp"-->

Dodge20
 
cheers dodge, I'll give it a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top