Not everybody wants a website with a name like SITE.pagekite.me, many already own their own domain names and would rather use those.
In fact, this is recommended - it provides a layer of abstraction and independence between your identity on-line and the PageKite Service. If you use a CNAME, you will more easily be able to move your website to some other solution or provider at a later date, if you so choose.
Obviously we hope you won't ever feel the need to do so, but having the freedom to choose is important.
Let's assume you own domain.com and have a PageKite Service account named you.pagekite.me, and you want www.domain.com to be served over PageKite.
The recommended CNAME-based configuration would involve the following steps:
Step 1. is technically not required, you could also create a CNAME directly on you.pagekite.me. However, by using a separate name, you preserve the ability to later use the two names for different websites on different computers.
How exactly to go about step 2. varies depending on where you bought your domain name. We hope to provide more details on the following, if you can help please feel free to edit these pages or upload screenshots:
Steps 3. and 4 are required to integrate the new name into your PageKite configuration.
Note that if you own domain.com and receive e-mail on that domain, then you can not create a CNAME for the top level domain.com name.
This is due to technical details of how DNS and e-mail interact. Generally you can create a CNAME for any other name (www.domain.com or pagekite.domain.com or my.page.domain.com to name a few), just not for the top level name itself.
Once the DNS records have been created and your PageKite
account brought up to date, you need to reconfigure
your PageKite configuration file - which may be called pagekite.py
or something like 80_http.rc
depending on your installation -
to know about your domain. If you have the second form of install the
config files should live in the directory /etc/pagekite.d
. Using
whereis pagekite
from the command line should reveal which form of install
you have pretty quickly - if you don't have pagekite.py
but you do have
/etc/pagekite.d
, you have the second kind.
This usually requires adding two lines to your configuration file, which would look like this:
service_on=http:domain.you.pagekite.me:localhost:80:SECRET
service_on=http:www.domain.com:localhost:80:SECRET
(Older versions of pagekite.py
used backend=
instead. SECRET is your PageKite secret - you can use "@kitesecret" if you've loaded the variable or you can put the actual string of your secret.)
Both lines are needed, as the first will guarantee that the DNS records for domain.you.pagekite.me are kept up to date as your front-ends change, and the second takes care of actually registering and routing traffic for www.domain.com.
Note: some Linux builds which include PageKite, e.g. the FreedomBox version of Debian, may add the first line for you when you turn on http access using the configuration utility (in FB Debian, it's called Plinth.) So if you see a line that looks similar to it in the file already, do not add it again. It may use the variable @kitename
instead of domain.you.pagekite.me
. You still need to add the second line.
Also note that if you want to expose HTTPS or SSH servers you will need to add lines for those as well in the appropriate config file(s). If you have a Debian install, including a FreedomBox, it should be fairly apparent which files you need to modify as their names consist of the port number the service uses plus the name of the service. The syntax is consistent.
Comments
backend=http:domain.you.pagekite.me:localhost:80:SECRET
backend=http:www.domain.com:localhost:80:SECRET
I successfully ran
pagekite.py --add 80 http:my.name.pagekite.me
pagekite.py --add 443 https:my.name.pagekite.me
But
pagekite.py --add 80 http:my.domain.com
pagekite.py --add 443 https:my.domain.com
gives errors:
.. !!! REJECTED: http:www.my.domain.com (Invalid account or shared secret)
and does not creat a kite
my.domain.com is listed as CNAME under my.name.pagekite.me in my account overview.
Could you help me out again?
Where in the config file do I add these lines?
Are they tab delimited, or can I just copy/paste the code above and modify with my own info?
Thanks
Hostname: www
Record Type: CNAME
Target Host: sitename.accountid.pagekite.me
www.ownid.net is an alias for t.pagekite.me.ownid.net.
t.pagekite.me.ownid.net has address 194.231.113.50
what did i do wrong?
great thing you put together - just what I was looking for - since 5 (!) days ... so YOU need better marketing (joke) - or I need better search-engine-handling ...
However - I just bought a domain at NAME-CHEAP - and here is my aff-link - in case you wanna help me become rich:
http://www.namecheap.com/?aff=46594
HOW-TO CNAME @ NAME-CHEAP
1: lets assume you bought " yourdomain.com " @ name-cheap.
2: log in and click on that domain name
3. scroll down a bit, left side is " Host-Managment", click on "All Hosts Records"
4. first line: look at Hostname (@)
4a. enter (IP-Address/URL): www.yourdomain.com
4b. choose (Record Type): URL-Redirect
4c. choose (TTL): 1800
(This takes care for the redirection of (yourdomain.com) to (www.yourdomain.com)
5. second line: look at Hostname (www)
5a. enter (IP-Address/URL): your-name.pagekite.me
5b. choose (Record Type): CNAME (Alias)
5c. choose (TTL): 1800
Thats it! --- you are all set and BOTH domains (yourdomain.com AND www.yourdomain.com) are pointing to
your-name.pagekite.me
Hope that helps,
thanks for reading,
Hans
please do NOT forget to enter your CNAME url into the settings script ...
when I try to add my domain to pagekite.
hosting website is freenom.com
PLEASE HELP!
it basically stops me from using non English characters like ÆØÅ in my domain name.
domains that would be typed like this "xn--giben-xua" (gibøen) is basically not allowed...
this restriction should have been clearly stated somewhere or just removed...
When I do that, it masks correctly, but always flips to http instead of https. Anyone know why that would be?
1. DELETE ALL ENTRIES.
2. Add a CNAME entry with 'sitename.xyz' in the 'Name' area and 'www.sitename.xyz' in 'Content'
2. Add a CNAME entry with 'www' in the 'Name' area and 'sitename.pagekite.me' in 'Content' DO NOT SAVE YET.
3. Set 'Proxy status' to 'DNS only' and set 'TTL' to '30 min'. Now you can save.
4. Enter your site into the CNAME field on pagekite now.
This worked for me atleast
GoDaddy has Forwarding with Mask, it works as it loads the kite properly in http. However, when you change the URL to https this error appears "ERR_CONNECTION_REFUSED".
Having a hard time following instructions here. Hopefully there will be someone to resolve this clearly.