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

help with images

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  iis won't process asp files anymore  
Author Message
cag

External


Since: Dec 13, 2004
Posts: 4



(Msg. 1) Posted: Thu Jan 06, 2005 7:15 pm
Post subject: help with images
Archived from groups: microsoft>public>inetserver>iis (more info?)

Here is the situation

Running IIS 6.0 on a Windows server 2003 box with one IP address
Have multiple websites that needed to be created

www.root.com
www.bus.com
www.emp.root.com

So we handled the multiple websites by using document headers

Here is the directory structure

inetpub
wwwroot
bus
emp
images
bus
emp
index.htm

What is the best way (or a way besides a absolute link) to link to the
images from the web site "bus"?
linking to a image these way will not work /images/emp/test.gif

Also linking to a stylesheet has it's problems
www.bus.com
<link rel="stylesheet" href="index.css" type="text/css"> with index.css
in the root of bus will not work


Thanks in advance for any help.

 >> Stay informed about: help with images 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 2) Posted: Thu Jan 06, 2005 11:35 pm
Post subject: Re: help with images [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are probably best served by adding the "images" folder (or the
/images/bus and /images/emp folders) as a virtual directory underneath the
existing "bus" and "emp" websites.

Cheers
Ken

"CAG" <CAG.DeleteThis@discussions.microsoft.com> wrote in message
news:5E6753DB-6704-415E-BFC8-FF5E05A3F530@microsoft.com...
 > Here is the situation
 >
 > Running IIS 6.0 on a Windows server 2003 box with one IP address
 > Have multiple websites that needed to be created
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.root.com</font" target="_blank">www.root.com</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.bus.com</font" target="_blank">www.bus.com</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.emp.root.com</font" target="_blank">www.emp.root.com</font</a>>
 >
 > So we handled the multiple websites by using document headers
 >
 > Here is the directory structure
 >
 > inetpub
 > wwwroot
 > bus
 > emp
 > images
 > bus
 > emp
 > index.htm
 >
 > What is the best way (or a way besides a absolute link) to link to the
 > images from the web site "bus"?
 > linking to a image these way will not work /images/emp/test.gif
 >
 > Also linking to a stylesheet has it's problems
<font color=purple> > <a style='text-decoration: underline;' href="http://www.bus.com</font" target="_blank">www.bus.com</font</a>>
 > <link rel="stylesheet" href="index.css" type="text/css"> with index.css
 > in the root of bus will not work
 >
 >
 > Thanks in advance for any help.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: help with images 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 3) Posted: Thu Jan 06, 2005 11:35 pm
Post subject: Re: help with images [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 6 Jan 2005 19:15:02 -0800, CAG <CAG DeleteThis @discussions.microsoft.com>
wrote:

 >Here is the situation
 >
 >Running IIS 6.0 on a Windows server 2003 box with one IP address
 >Have multiple websites that needed to be created
 >
 >www.root.com
 >www.bus.com
 >www.emp.root.com
 >
 >So we handled the multiple websites by using document headers
 >
 >Here is the directory structure
 >
 >inetpub
 > wwwroot
 > bus
 > emp
 > images
 > bus
 > emp
 > index.htm
 >
 >What is the best way (or a way besides a absolute link) to link to the
 >images from the web site "bus"?
 > linking to a image these way will not work /images/emp/test.gif

Best would be to rethink your directory structure and put an images
folder in each site, keeping all files relevant to a site under the
root folder. Otherwise you need a virtual directory pointing to the
correct location.

 >Also linking to a stylesheet has it's problems
<font color=purple> > <a style='text-decoration: underline;' href="http://www.bus.com</font" target="_blank">www.bus.com</font</a>>
 > <link rel="stylesheet" href="index.css" type="text/css"> with index.css
 >in the root of bus will not work

Explain "will not work" because that's exactly how you would link a
stylesheet in the root folder into a web page file in the same root
folder.

Unless you're not really doing multiple sites and you have all sites
pointing to the wwwroot folder as their root. If you have three
sites, that are actually three different sites, you should have three
different root folders and three sets of folders. And if by "document
headers" you don't mean Host Headers, then see:

HOW TO: Use Host Header Names to Configure Multiple Web Sites in
Internet Information Services 6.0:
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=324287" target="_blank">http://support.microsoft.com/?id=324287</a>

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: help with images 
Back to top
Login to vote
Display posts from previous:   
   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 ]