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

Controlling how absolute paths are evaluated in ASP applic..

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  adding virutal directory on another machine  
Author Message
hardieca

External


Since: Feb 19, 2008
Posts: 1



(Msg. 1) Posted: Tue Feb 19, 2008 12:20 pm
Post subject: Controlling how absolute paths are evaluated in ASP applications
Archived from groups: microsoft>public>inetserver>iis (more info?)

hi,

I have an ASP website at:

http://www.mysite.com

I want to have a subsite off the main site like so:

http://www.mysite.com/subsite

Within the subsite, I have a page:

http://www.mysite.com/subsite/index.asp

Within the page, I have a SSI:

<!-- #include virtual="/includes/myInclude.inc" -->

Is it possible to have the path of that SSI evaluate to:

http://www.mysite.com/subsite/includes/myInclude.inc

Currently, the SSI's path is evaluating to the top level site:

http://www.mysite.com/includes/myInclude.inc

Assigning more IPs is not feasible. Putting all of our includes within
the top level site is also not feasible.

Is there any way to control how absolute paths are evaluated? I'm not
especially familiar with IIS, any help would be appreciated!

Regards,

Chris

 >> Stay informed about: Controlling how absolute paths are evaluated in ASP applic.. 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 2) Posted: Tue Feb 19, 2008 10:06 pm
Post subject: Re: Controlling how absolute paths are evaluated in ASP applications [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Use relative paths, always. It makes things so much easier.

But to answer your question, no SSI does not have any such feature.

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


<hardieca.TakeThisOut@hotmail.com> skrev i meddelandet
news:99f961c7-d755-45bd-be9e-d7e6bcfb1f28@j28g2000hsj.googlegroups.com...
> hi,
>
> I have an ASP website at:
>
> http://www.mysite.com
>
> I want to have a subsite off the main site like so:
>
> http://www.mysite.com/subsite
>
> Within the subsite, I have a page:
>
> http://www.mysite.com/subsite/index.asp
>
> Within the page, I have a SSI:
>
> <!-- #include virtual="/includes/myInclude.inc" -->
>
> Is it possible to have the path of that SSI evaluate to:
>
> http://www.mysite.com/subsite/includes/myInclude.inc
>
> Currently, the SSI's path is evaluating to the top level site:
>
> http://www.mysite.com/includes/myInclude.inc
>
> Assigning more IPs is not feasible. Putting all of our includes within
> the top level site is also not feasible.
>
> Is there any way to control how absolute paths are evaluated? I'm not
> especially familiar with IIS, any help would be appreciated!
>
> Regards,
>
> Chris

 >> Stay informed about: Controlling how absolute paths are evaluated in ASP applic.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
absolute URLs XP vs Server OS - I develop sites on XP machines and would like to use urls in the format of /<dir>/page.htm in the pages throughout the site. Since XP does not allow you to create multiple sites, only multiple virtual directories, so the proper format needed is..

absolute path to ImageUrl property ..... - Hi All, I'm developping a site using VS2008 (c#) on IIS 6.0. In my application images are not shown by the image control, they are in the web server machine and the main folder path is E:\PICTURES. If I set the ImageURL property in the code and set i...

absolute list of scenarios when an iisreset is require in .. - Hi there, Just wanting to have someone clarified for me this "edit- while-running" feature in IIS6. So far, I have read that if you have "edit-while-running' enabled. The administrator can just update the metabase.xml or other configura...

IIS 6 and UNC paths - I have a script (compiled exe) that runs on IIS 5 just fine. I turn it over to IIS 6 and make sure I have all the proper permissions. It seems to run but I am getting this path statement error " Cannot open file \\?\C:\Inetpub\website\login.htm, ...

iis & perl and unc paths - hello *.*, what must be changed in the configuration of the iis in order to allow cgi perl script access to unc paths? thanx in advance, Andreas
   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 ]