#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    8
    Rep Power
    0

    New domain name: back to basics


    I've got a server running apache. I've got a domain name registered via DollarHost. My server's IP changes daily, from 209.53.63.222 to 209.53.60.49. To compensate, I downloaded dns2go from Deerfield.com and got a permanent web address: qartis.dns2go.com. I wanted qartis.com, though. Once I bought it, in setting up the dollarhost account, I had one feild to put my actual server's address: I put qartis.dns2go.com because it will always be correct.

    Now, on my website, qartis.com, every link says it's going to http://qartis.dns2go.com/* and the URL feild says that the user is at qartis.com when they're actually looking at whatever.php. Does anybody get what my problem is?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    >> Does anybody get what my problem is?

    Yes but I am not familiar with dns2go. Here is what you can do:

    1) Don't use absolute links
    2) Run a proxy with mod_proxy + mod_rewrite like so:

    You need to uncomment libproxy.so and mod_rewrite.so.
    <VirtualHost *>
    ServerName gartis.dns2go.com
    DocumentRoot '/path/to/docroot"
    </VirtualHost>
    <VirtualHost *>
    ServerName gartis.com
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^gartis\.com$ [NC]
    RewriteRule ^/icons/(.+) - [PT,L]
    RewriteRule ^(.*) http://gartis.dns2go.com$1 [P]
    </VirtualHost>
  4. #3
  5. No Profile Picture
    myOstrich Internet
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    28
    Rep Power
    0
    The mechanism that's pointing quartis.com to qartis.dns2go.com is a simple URL redirect, and this is the behavior that results from that mechism.

    -t
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    8
    Rep Power
    0
    freebsd:

    The links aren't absolute; dollarhost is set up to redirect qartis.com to qartis.dns2go.com, and is set to still show qartis.com. That's probably why even qartis.dns2goc.om/whatever.php shows up as qartis.com.

    I found another problem: when a visitor of qartis.com venturres on to, say login.php, the URL bar says qartis.com. Then, when they press refresh, their browser, thinking they're at qartis.com, is redirected back home.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    8
    Rep Power
    0
    When I load the proxy, with permissions set, and:

    Code:
    <VirtualHost *> 
    ServerName qartis.dns2go.com 
    DocumentRoot '/localhost" 
    </VirtualHost> 
    <VirtualHost *> 
    ServerName qartis.com 
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^qartis\.com$ [NC] 
    RewriteRule ^/icons/(.+) - [PT,L] 
    RewriteRule ^(.*) http://qartis.dns2go.com$1 [P] 
    </VirtualHost>
    , I get: Error 403, Forbidden.

    Hmmm...
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    >> dollarhost is set up to redirect qartis.com

    Then mod_proxy won't work. BTW, why dns2go? There are many alternatives out there.
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    8
    Rep Power
    0
    dns2go, because it's the first one I found, and I was tired of telling prople my website was "209.53.63.222, or 209.53.60.49. It switches between those two, so if one doesn't work, it's the other.'.

IMN logo majestic logo threadwatch logo seochat tools logo