Professional Web Applications Themes

Coldfusion Mapping - Coldfusion Server Administration

I am using the Coldfusion server developer edition. My sites are hosted on shared servers at (Godaddy). I love using cfincludes and have learned that anything inside them must use Site Root relative links or they will be broken when called from files in different folders. Referring to an image as /images/photo.jpg works fine on my webhost, but it's broken on my development server. My local site structure is: C:\CFusionMX7\wwwroot\wec C:\CFusionMX7\wwwroot\geeks C:\CFusionMX7\wwwroot\law Where 'WEC' and 'geeks' and 'law' are all different sites I've made. On my development server, /images/photo.jpg will be looking for C:\CFusionMX7\wwwroot\images\photo.jpg when I need it to look ...

Sponsored Links
  1. #1

    Default Coldfusion Mapping

    I am using the Coldfusion server developer edition. My sites are hosted on
    shared servers at (Godaddy). I love using cfincludes and have learned that
    anything inside them must use Site Root relative links or they will be broken
    when called from files in different folders.
    Referring to an image as /images/photo.jpg works fine on my webhost, but it's
    broken on my development server.
    My local site structure is:
    C:\CFusionMX7\wwwroot\wec
    C:\CFusionMX7\wwwroot\geeks
    C:\CFusionMX7\wwwroot\law
    Where 'WEC' and 'geeks' and 'law' are all different sites I've made.
    On my development server, /images/photo.jpg will be looking for
    C:\CFusionMX7\wwwroot\images\photo.jpg when I need it to look for
    C:\CFusionMX7\wwwroot\geeks\images\photo.jpg.

    So ... how do I get a mapping for / that means C:\CFusionMX7\wwwroot\geeks\
    when I'm working on the geeks website and C:\CFusionMX7\wwwroot\wec\ when I'm
    working on the wec website?

    I even tried going into the coldfusion server and making a mapping for
    Logical path: /
    Directory path: C:\CFusionMX7\wwwroot\geeks

    I know I would have to change that each time I change the site I'm working on.
    I could even live with that if it worked ... but it doesn't.

    THANKS!

    Sponsored Links
    RV Guest

  2. #2

    Default Re: Coldfusion Mapping

    On Jun 25, 4:43 pm, "RV Chris" <com> wrote: 
    In order for it to work you need to create separate CF instances for
    your sites, then the webroot for each instance will be set by you to
    corresponding directory - that is the way it works... 
    So you need 
    wec instance 
    geeks instance 
    law instance 
    This is because you have one instance with webroot in C:
    \CFusionMX7\wwwroot\ 

    BTW: you do not have to run ALL instances at the same time if you are
    worried about memory consumption...
    GArlington Guest

  3. #3

    Default Re: Coldfusion Mapping

    Hi,

    You can try the CF mapping from the administartor and map the directories.

    Regards
    UKB
    ukb Guest

Similar Threads

  1. CF Mapping
    By Chaitanya.shah in forum Coldfusion Server Administration
    Replies: 2
    Last Post: August 2nd, 05:21 AM
  2. Mapping?
    By GeorgeWS in forum Coldfusion Server Administration
    Replies: 0
    Last Post: May 30th, 05:30 PM
  3. Mapping .html to Coldfusion in MX 7
    By bates550 in forum Coldfusion Server Administration
    Replies: 1
    Last Post: March 30th, 03:47 AM
  4. uv mapping
    By Roofy in forum Macromedia Director 3D
    Replies: 1
    Last Post: June 29th, 02:08 PM
  5. Mapping
    By Andy Delia in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 4
    Last Post: June 8th, 12:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139