Setting up correct "root" domain in "virtual" directory

Setting up correct "root" domain in "virtual" directory

am 29.10.2007 21:11:01 von qaz216

I am newer to IIS and am stumped by 'root' domain issue for a website
I am working on.

I downloaded a live site to my PC and everything is running fine,
however, there are some images that are not resolving correctly.

Here is what the img tag looks like.



When I load local site to: http://localhost/mysiteurl
site loads fine, except images do not load.

When I right click on image and click 'View Image', I can see image is
resolved to ...

http://localhost/images/index_15.jpg

Whereas image should resolve to:

http://localhost/mysiteurl/images/index_15.jpg

I am running IIS 5.1

Can anyone help?

Thanks a million!

Re: Setting up correct "root" domain in "virtual" directory

am 29.10.2007 22:06:21 von Kristofer Gafvert

The HTML is incorrect and you use absolute references. It is recommended
that you use relative paths instead.

So you either need to fix the references to the images, or you need to
change the URL.



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


qaz216 wrote:

>I am newer to IIS and am stumped by 'root' domain issue for a website
>I am working on.
>
>I downloaded a live site to my PC and everything is running fine,
>however, there are some images that are not resolving correctly.
>
>Here is what the img tag looks like.
>
>
>
>When I load local site to: http://localhost/mysiteurl
>site loads fine, except images do not load.
>
>When I right click on image and click 'View Image', I can see image is
>resolved to ...
>
>http://localhost/images/index_15.jpg
>
>Whereas image should resolve to:
>
>http://localhost/mysiteurl/images/index_15.jpg
>
>I am running IIS 5.1
>
>Can anyone help?
>
>Thanks a million!

Re: Setting up correct "root" domain in "virtual" directory

am 29.10.2007 22:44:16 von qaz216

Hi Kristofer and thanks for your reply ...

As I am new to IIS, there were a few things that I was not aware.

I am running XP Pro locally and it does not support (graphically) the
creation of "multiple" virtual web servers.

See: http://www.bobshowto.com/iis_servers.htm

I downloaded this program and was able to set up multiple servers:
http://www.jetstat.com/iisadmin/download.asp

The answer is to set up another "site" not just a "virtual directory".

I am sure you know all this already, but I am just putting it out
there for the next guy/gal.

Thanks Again!

On Oct 29, 5:06 pm, "Kristofer Gafvert"
wrote:
> The HTML is incorrect and you use absolute references. It is recommended
> that you use relative paths instead.
>
> So you either need to fix the references to the images, or you need to
> change the URL.
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
> qaz216 wrote:
> >I am newer to IIS and am stumped by 'root' domain issue for a website
> >I am working on.
>
> >I downloaded a live site to my PC and everything is running fine,
> >however, there are some images that are not resolving correctly.
>
> >Here is what the img tag looks like.
>
> >
>
> >When I load local site to:http://localhost/mysiteurl
> >site loads fine, except images do not load.
>
> >When I right click on image and click 'View Image', I can see image is
> >resolved to ...
>
> >http://localhost/images/index_15.jpg
>
> >Whereas image should resolve to:
>
> >http://localhost/mysiteurl/images/index_15.jpg
>
> >I am running IIS 5.1
>
> >Can anyone help?
>
> >Thanks a million!

Re: Setting up correct "root" domain in "virtual" directory

am 29.10.2007 22:48:49 von Kristofer Gafvert

Which means that you opt for my second resolution - to change the URL.


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


qaz216 wrote:

>Hi Kristofer and thanks for your reply ...
>
>As I am new to IIS, there were a few things that I was not aware.
>
>I am running XP Pro locally and it does not support (graphically) the
>creation of "multiple" virtual web servers.
>
>See: http://www.bobshowto.com/iis_servers.htm
>
>I downloaded this program and was able to set up multiple servers:
>http://www.jetstat.com/iisadmin/download.asp
>
>The answer is to set up another "site" not just a "virtual directory".
>
>I am sure you know all this already, but I am just putting it out
>there for the next guy/gal.
>
>Thanks Again!
>
>On Oct 29, 5:06 pm, "Kristofer Gafvert"
>wrote:
>>The HTML is incorrect and you use absolute references. It is recommended
>>that you use relative paths instead.
>>
>>So you either need to fix the references to the images, or you need to
>>change the URL.
>>
>>--
>>Regards,
>>Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>qaz216 wrote:
>>>I am newer to IIS and am stumped by 'root' domain issue for a website
>>>I am working on.
>>
>>>I downloaded a live site to my PC and everything is running fine,
>>>however, there are some images that are not resolving correctly.
>>
>>>Here is what the img tag looks like.
>>
>>>
>>
>>>When I load local site to:http://localhost/mysiteurl
>>>site loads fine, except images do not load.
>>
>>>When I right click on image and click 'View Image', I can see image is
>>>resolved to ...
>>
>>>http://localhost/images/index_15.jpg
>>
>>>Whereas image should resolve to:
>>
>>>http://localhost/mysiteurl/images/index_15.jpg
>>
>>>I am running IIS 5.1
>>
>>>Can anyone help?
>>
>>>Thanks a million!