|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
>> 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> |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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... |
|
#6
|
|||
|
|||
|
>> dollarhost is set up to redirect qartis.com
Then mod_proxy won't work. BTW, why dns2go? There are many alternatives out there. |
|
#7
|
|||
|
|||
|
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.'.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > New domain name: back to basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|