Re: Virtual directories in IIS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 01/07/05


Date: Fri, 7 Jan 2005 15:52:48 -0800

This really isn't an issue with IIS but rather names.

If you want to have websites that can move around from machine-to-machine or
from one hierarchy location to another, you need to author the webpage as
such. You are authoring HTML, and this is simply how HTML works.

Your concept of "lock everything within my virtual folder" has absolutely no
meaning to a webserver like IIS nor HTML because that is an
application/scope concept. Webservers simply handle requests, translate URL
to Filesystem actions, and returns a response. Something else needs to run
on the server to interpret your intent of "lock everything within my virtual
folder" and implement it as a feature.

Now, you can certainly run custom applications that "rebase" websites
dynamically (like the ASP.Net ~ feature that Kristofer mentions) from the
server perspective, but that's an application feature which has nothing to
do with IIS nor HTML.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Maziar Aflatoun" <maz00@rogers.com> wrote in message
news:g_SdnTQukeYobEPcRVn-tw@rogers.com...
Hi everyone,
I'm suppose to work on a website.  I copy all the files over to my computer
(Running WinXP Pro) and create a new virtual folder (ex. mysite).  There are
references to images such as ../images/image1.jpg and /images/image2.jpg
which don't come up properly since they become relative to localhost.
Ex. http://localhost/images and not http://localhost/mysite/images . There
is no way for me to change ../images and /images to just images.  Is there a
way to lock everything within my virtual folder? so that /images would
actually go to http://localhost/mysite/images instead of
http://localhost/images?
Thank you
Maz.


Relevant Pages

  • Re: my new website - feedback required...
    ... Those websites have succeeded in spite of, rather than because of, any ... And I'd bet that not one user has EVER complained about their HTML not ... Doesn't change the fact they were successful in spite of HTML not ... other sites which are perfectly accessible WITHOUT being W3C compliant. ...
    (uk.net.web.authoring)
  • Re: Intranet problem - 404 and 405 errors
    ... I presume the HTML has a FORM that is accessing the EXE. ... "Scripts" or "Scripts and Executables" Execute Permission, ... Both issues you describe can be directly diagnosed from the IIS web log ... Contact the Web site administrator if you believe that this request should ...
    (microsoft.public.inetserver.iis.security)
  • Re: cannot access site by IP - bad request invalid hostname
    ... You call the above two websites, but from IIS perspective, it is one website ... Request", ... The xxx.xxx.xxx.69 was setup initially with the server setup. ...
    (microsoft.public.inetserver.iis)
  • Re: Suggestions please
    ... I mentioned my OS and browser because websites should work in different ... More people using Windows are turning to Mozilla (or its ... want a real html editor. ...
    (microsoft.public.windowsxp.general)
  • Re: Website Test
    ... As I have mentiond to Barbara de Zoete I will be making massive changes ... Change background colour from a tile to a solid colour ... As I said to Barbara de Zoete I am a newbie to websites. ... need to have some understanding of HTML to properly understand DW. ...
    (alt.html)