SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old January 10th, 2002, 05:52 PM
qartis qartis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 8 qartis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
  #2  
Old January 10th, 2002, 06:48 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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>

Reply With Quote
  #3  
Old January 10th, 2002, 06:50 PM
thewitt thewitt is offline
myOstrich Internet
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 28 thewitt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #4  
Old January 10th, 2002, 08:52 PM
qartis qartis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 8 qartis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
  #5  
Old January 10th, 2002, 09:11 PM
qartis qartis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 8 qartis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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...

Reply With Quote
  #6  
Old January 10th, 2002, 09:16 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
  #7  
Old January 10th, 2002, 09:46 PM
qartis qartis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 8 qartis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.'.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > New domain name: back to basics


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway