Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on subdomain redirection in the Shared & Semi-Dedicated forum
Hi. I have tried to find answer in this forum but fail to do so. I apologize if this has been posted before. I have ...

  1. #1
    JPC Member
    Join Date
    May 2005
    Posts
    3

    subdomain redirection

    Hi. I have tried to find answer in this forum but fail to do so. I apologize if this has been posted before.

    I have a domain in Jaguar, say... Jdomain.com
    I added a subdomain, say... sub1.Jdomain.com

    I redirected this domain to my own server, with the IP assigned to me by my ISP, so that when user typed in sub1.Jdomain.com it would direct them to 100.100.10.10 (my IP)

    Is there a way to make the browser displays subdomain URL instead of my IP? for example, when accessing the index.htm in my server

    instead of displaying in browser's URL bar
    "100.100.10.10/index.htm"
    it displays
    "sub1.Jdomain.com/index.htm"

    Thank you ^^

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    How did you make this redirection? If you used the Apache's mod_rewrite then it's a matter of setting a different option, to make the redirect "internal" (meaning handled through Apache insteald of through reporting it to the client browser). I don't know it of the top of my head, but it shouldn't be hard to find in the modules manual.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  3. #3
    JPC Member
    Join Date
    May 2005
    Posts
    3
    I redirect using the "subdomain" (under "Manage Site") in cpanel

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    When you are redirecting from one URL on a server to another on the same server you can set up an internal redirect so that the browser continues to show the one that the user typed in even though the page served technically has a different URL. Unfortunately you can't do this when moving between servers.

    Ofther what is done by the services that offer name redirection is what has become known as cloaking. The way it works that the first servers creates a frameset with a single frame in it and loads the requested page from the other server into the frameset. There are, of course, all the usual frame problems (bookmarks and printing give unexpected results in some browsers, URL doesn't change as new pages are loaded), but the domain name that you wnat to use stays put.

    An option you may wnat to consider if you have a static IP on the machine to which you are redirecting is to have JPC modify your DNS zone to include a record for the machine. This will literally assign the sub1.jdomain.com name to that address the same way as www.jdomain.com is assigned to the server's IP so you won't have to wory about redirects, but if this address changes frequently you'd have to keep bugging support to update it. If you want to do this, open a support ticket and ask that an A record be set up to map the IP address to the subdomain you'd like pointed there.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  5. #5
    JPC Member
    Join Date
    May 2005
    Posts
    3
    Thank you very much for the reply.
    Since the IP i get from the ISP is Dynamic instead of static
    I will use frameset for now.

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by jason
    Unfortunately you can't do this when moving between servers.

    Ofther what is done by the services that offer name redirection is what has become known as cloaking.
    Gosh; always assumed that was "lazyness", not impossibility. Of course, if it be done internal to Apache all data would pass in and out through JagPCs server, but I assumed that doable for a few minor things kept on a home server. Perhaps Apache developers didn't want to make something that might end up burdening the internet with an endless chain of redirects?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  7. #7
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You could do something like this as a sort of proxy, and it wouldn't be too difficult to write such a program, but it could be burdensome on the machine.

    Another idea that I just had is to use a combination of the free services offered at www.dyndns.org along with a CNAME in your JPC DNS records. A CNAME is an alias that points one hostname to another. DynDNS is a service that gives you a static domain name for a computer that has a dynamic IP address.

    Go to DynDNS.org and sign up for a free account. Use it to create a "Dynamic DNS" host. Find a base domain you like and pick whatever name you'd like for your personal host name (for example, you might pick homedns.org and then use "mycomputer" for your personal name, giving you a unique hostname of "mycomputer.homedns.org." You'll then need to install and configure an update client that will tell the DynDNS servers to update your IP everytime it changes. Then you'll be able to access your home computer by name, even if it changes when you aren't around. If you are using a broadband router at home it probably has a DynDNS (or similar service) client built in.

    Now, in order to get a JPC name mapped to your machine, open a ticket and ask for a CNAME record to be added to your DNS zone that points whatever.yourdomain.com at mycomputer.homedns.org. Once done youll have full access (not just web) to your home computer via a JPC domain name, even if your IP address changes frequently.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

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
  •