Mobile app version of vmapp.org
Login or Join
Kristi941

: Why GoDaddy custom domain redirects to Heroku's appid.herokuapp.com? I am trying to setup a custom domain with Heroku. Here is the setup I did for my wikinames.org domain in my GoDaddy account:

@Kristi941

Posted in: #Godaddy #Heroku #Mediawiki

I am trying to setup a custom domain with Heroku.

Here is the setup I did for my wikinames.org domain in my GoDaddy account:


DNS zone:

@ A 50.63.202.1
www CNAME myappid.herokuapp.com

Forwarding (for naked domain support):


from: wikinames.org to: www.wikinames.org, 301 (permanent), forward only



Once I go to www.wikinames.org, I observe the following:


request remote address: 23.21.223.98:80, status Code: 301 Moved Permanently
response header: Location: wikinames-org.herokuapp.com/index.php?title=Main_Page (I've installed MediaWiki, but
$wgServer there is equal to www.wikinames.org).

Why does it redirect me to wikinames-org.herokuapp.com?

Upd. Looks like it happens because of ip 50.63.202.1 used. But if I delete this record, then naked domain stops working, but www version still redirects to wikinames-org.herokuapp.com.
Upd2. Looks like enabling of masking could help me, but seems it will work only with www case.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

Looks like the problem was with the MediaWiki installed. $wgServer there was equal to wikinames-org.herokuapp.com initially. I thought that I've changed that, but looks like the change wasn't uploaded to Heroku.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme