Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Subdomain Experts

    I want to set up users with subdomains (user.domain.tld).

    My DNS can be modified by me using IP, CNAME or TXT. I have shared hosting so
    if ColdFusion Admin needs to do something I have to ask a technician to do it.

    When I set up "subdomain" using CNAME in my DNS, I get "virtual directory
    unavailalbe" in browser. All I want the subdomain for is to personalise a WEb
    site. Every page is identical only coldfusion looks at the subdomain (using
    CGI), runs a query and pulls the users details for use on the page.

    [url]www.mplus.co.nz/leilani[/url] and [url]www.mplus.co.nz/jackson[/url] are two examples of what i
    want to do that don't use subdomains.

    But, I want leilani.mplus.co.nz etc.

    I'd really appreciate any help you can give.

    The Law Guest

  2. Similar Questions and Discussions

    1. subdomain.domain.tld regexp?
      Is there a module that can split a given host in a subdomain, domain, tld part? e.g. www.google.com => www google com www.google.co.uk...
    2. Subdomain Connections
      I am reopening a problem raised last year on this forum. When I try to edit a page in a subdomain (my-subdomain.my-domain.com/my-page.htm), it...
    3. subdomain problem
      Hello folks... I'm using Contribute 3.11 on the Mac, and I have a problem with subdomains. I'm the admin for a local school, and I have a connection...
    4. New subdomain does not display cfm pages
      I created 2 new subdomain on our IIS 5 server running ColdFusion 5.0 These 2 new subdomains are parsing HTML pages fine, however, they are not...
    5. Regexp to find the subdomain (if any) from $HTTP_HOST
      I need help creating a regular expression to find the subdomain in the $HTTP_HOST variable. The domain is always in this form: www.domain.com...
  3. #2

    Default Re: Subdomain Experts

    The easiest way is to use cfdirectory to create a directory for that user.
    Next, use cffile to create an index page for that user inside the directory.
    You can have Coldfusion write out the page completely based on a query(nice
    because the index page doesn't have to hit the database when users visit, or
    you can write an include statement to the index page that points to your needed
    queries. I'm sure there are other ways as well.

    Usually by default, when someone types [url]www.mplus.co.nz/jackson[/url], the server
    will try to find an index page inside the jackson folder.



    James74 Guest

  4. #3

    Default Re: Subdomain Experts

    Thanks. I'm really after the subdomain.domain.co.nz.

    What is the A record in my DNS? Is it IP or CNAME and how should it look?

    subdomain.domain.co.nz CNAME [url]www.domain.co.nz?[/url]

    Can you write an example for me?

    Once I do that, do I need to do anything in Coldfusion to make it work? I
    don't administer my own server so you might need to give me admin instructions
    if necessary. Thanks a lot. This is really important.

    The Law Guest

Posting Permissions

  • You may not post new threads
  • You may 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