Re: Coldfusion webroot and multiple domain names

2011-01-26 Thread fun and learning

  The client said that using one IP address, several domain names can 
 be used- multiple sites using host
  header names. I am not sure what that means
 
 It means that you'll probably have to create virtual directories for
 both sites, as several people have mentioned.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

Thanks for replying. Everything is set up and I am able to access individual 
sites. The problem is with the images folder. I am not able to get the images 
to be displayed. Any ideas on this. I gave my directory structure in my initial 
question. There is another folder at the same level as images and it contains 
all cfm files. Am able to include cfm files from that folder but not any images.

Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341478
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-26 Thread Azadi Saryev

you probably have a mapping set up (in cf admin or in your 
Application.cfc/cfm) for your above-web-root folder that contains your 
.cfm files - that is why they can be included.

that cf mapping however would not apply to any other files - only to 
cfm/cfc ones.
all other files will be served by your web server directly.
you thus need to set up a virtual directory 'images' in each of your 
sites and point it to that 'images' folder above your of web root.

Azadi

On 27/01/2011 09:54 , fun and learning wrote:
 The client said that using one IP address, several domain names can
 be used- multiple sites using host
 header names. I am not sure what that means
 It means that you'll probably have to create virtual directories for
 both sites, as several people have mentioned.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 Thanks for replying. Everything is set up and I am able to access individual 
 sites. The problem is with the images folder. I am not able to get the images 
 to be displayed. Any ideas on this. I gave my directory structure in my 
 initial question. There is another folder at the same level as images and it 
 contains all cfm files. Am able to include cfm files from that folder but not 
 any images.

 Thanks

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-26 Thread Dave Watts

 Thanks for replying. Everything is set up and I am able to access individual 
 sites. The problem is with the images folder. I am not able to get the
 images to be displayed. Any ideas on this. I gave my directory structure in 
 my initial question. There is another folder at the same level as
 images and it contains all cfm files. Am able to include cfm files from that 
 folder but not any images.

You probably need to create a virtual directory, as I mentioned in my
previous response. This would be a configuration change to your web
server.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-25 Thread fun and learning

 You'll want to create an alias to the images folder between sites.  
 What web server are you using?

 Sent from my HTC on the Now Network from Sprint!

 - Reply message -
 From: fun and learning funandlrnn...@gmail.com
 Date: Mon, Jan 24, 2011 20:02
 Subject: Coldfusion webroot and multiple domain names
 To: cf-talk cf-talk@houseoffusion.com

 Hi All -

 I am new to this multiple domain thing. Am working on a project, where 
 there multiple domain projects under on webroot. Like www.abc.com, www.
 def.com under one root. The folder structure is something like below:

 E:
 
 webroot

 --INCLUDES

 --IMAGES
  
 --image.gif
  
 -- www.abc.com
 
 --folder1
   
 --index.cfm
  
 -- www.def.com

 So the above two diff domains share two common folders. When I use an 
 include file of form .cfm, I can get it to work. But somehow the 
 images are not displayed. I tried the following syntaxes

 Suppose I want to access images from index.cfm under www.abc.
 com/folder1, i tried the following:

 img src=../../IMAGES/image.gif(does not work)
 img src=E:/webroot/IMAGES/image.gif) (also does not work. The image 
 symbol is shown but the entire image is not shown).

 Any thoughts on how to get this working? 

Hi All-

Thanks for replying.The client said that using one IP address, several domain 
names can be used- multiple sites using host header names. I am not sure what 
that means 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341231
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-25 Thread Russ Michaels

The host header is what is sent to server and contains the domain name being
requested.
This is then used to determine which website to display.
In IIS you simply enter the domain name in the bindings section along with
the IP address you want to use for the site.
If you have multiple domains for the same site then just add multiple
bindings, although this is bad practice and is not SEO friendly, you should
redirect any aliases to the primary domain really, including www.

more info here
http://www.google.co.uk/search?q=how+to+setup+a+site+in+iisie=utf-8oe=utf-8aq=trls=org.mozilla:en-GB:officialclient=firefox-a



--

Russ Michaels

www.bluethunderinternet.com  : Business hosting services  solutions
www.cfmldeveloper.com: ColdFusion developer community
www.michaels.me.uk   : my blog
www.cfsearch.com : ColdFusion search engine
**
*skype me* : russmichaels


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341244
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-25 Thread Dave Watts

 The client said that using one IP address, several domain names can be used- 
 multiple sites using host
 header names. I am not sure what that means

It means that you'll probably have to create virtual directories for
both sites, as several people have mentioned.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341277
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Coldfusion webroot and multiple domain names

2011-01-24 Thread fun and learning

Hi All -

I am new to this multiple domain thing. Am working on a project, where there 
multiple domain projects under on webroot. Like www.abc.com, www.def.com under 
one root. The folder structure is something like below:

E:
 webroot
--INCLUDES
--IMAGES
  --image.gif
  -- www.abc.com
 --folder1
   --index.cfm
  -- www.def.com

So the above two diff domains share two common folders. When I use an include 
file of form .cfm, I can get it to work. But somehow the images are not 
displayed. I tried the following syntaxes

Suppose I want to access images from index.cfm under www.abc.com/folder1, i 
tried the following:

img src=../../IMAGES/image.gif(does not work)
img src=E:/webroot/IMAGES/image.gif) (also does not work. The image symbol is 
shown but the entire image is not shown).

Any thoughts on how to get this working? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341160
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-24 Thread Dave Watts

 I am new to this multiple domain thing. Am working on a project, where there 
 multiple domain projects under on webroot. Like
 www.abc.com, www.def.com under one root. The folder structure is something 
 like below:

 E:
  webroot
    --INCLUDES
    --IMAGES
      --image.gif
      -- www.abc.com
         --folder1
           --index.cfm
      -- www.def.com

Well, first, it might be useful to figure out what exactly you mean by
webroot here. Generally, it means the folder that actually maps to a
web server's HTTP root directory. For example, if you have a single
web server that corresponds to a single domain, you might have
something like this:

c:\inetpub\wwwroot\

which maps to

http://www.yoursite.com/

In your above example, does the directory e:\webroot\www.abc.com map
to http://www.abc.com/? If so, the webroot is e:\webroot\www.abc.com,
not e:\webroot.

 So the above two diff domains share two common folders. When I use an include 
 file of form .cfm, I can get it to work. But
 somehow the images are not displayed. I tried the following syntaxes

 Suppose I want to access images from index.cfm under www.abc.com/folder1, i 
 tried the following:

 img src=../../IMAGES/image.gif(does not work)
 img src=E:/webroot/IMAGES/image.gif) (also does not work. The image symbol 
 is shown but the entire image is not shown).

Assuming that your webroot is e:\webroot\www.abc.com, neither of those
will work. The second won't work no matter what your webroot is,
because a browser isn't going to be able to resolve a directory path
on the server. You'd have to create a virtual directory for each of
those virtual web servers (www.abc.com, www.def.com). Then, you'd be
able to resolve URLs using the virtual directory as your starting
point:

img src=/images/image.gif

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training cent

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341161
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion webroot and multiple domain names

2011-01-24 Thread wattw...@telarushq.com

You'll want to create an alias to the images folder between sites.  What web 
server are you using?

Sent from my HTC on the Now Network from Sprint!

- Reply message -
From: fun and learning funandlrnn...@gmail.com
Date: Mon, Jan 24, 2011 20:02
Subject: Coldfusion webroot and multiple domain names
To: cf-talk cf-talk@houseoffusion.com


Hi All -

I am new to this multiple domain thing. Am working on a project, where there 
multiple domain projects under on webroot. Like www.abc.com, www.def.com under 
one root. The folder structure is something like below:

E:
 webroot
--INCLUDES
--IMAGES
  --image.gif
  -- www.abc.com
 --folder1
   --index.cfm
  -- www.def.com

So the above two diff domains share two common folders. When I use an include 
file of form .cfm, I can get it to work. But somehow the images are not 
displayed. I tried the following syntaxes

Suppose I want to access images from index.cfm under www.abc.com/folder1, i 
tried the following:

img src=../../IMAGES/image.gif(does not work)
img src=E:/webroot/IMAGES/image.gif) (also does not work. The image symbol is 
shown but the entire image is not shown).

Any thoughts on how to get this working? 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341162
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm