- Create a new CNAME in DNS entries for www.example.com.
- Install pagekite
curl -s https://pagekite.net/pk/ |sudo bash
- Run
pagekite.py 80 example.pagekite.me
- Update nginx redirect.
systemctl restart nginx
nginx:
server {
listen 80;
server_name example.com;
return 301 https://example.com$request_uri;
}
pagekite.rc:
kitename = example.pagekite.me
kitesecret = TurdSandwich
##[ Back-ends and local services ]##
service_on = https:@kitename : localhost:80 : @kitesecret
service_on = https:www.example.com : localhost:80 : @kitesecret
how do you set the secret for your domain? I only have two DNS records www and * both pointing to my domain, nothing works, I am going crazy with this!