Tahap 1 : Mendaftar di Cloudflare

Silahkan masuk kehalaman ini,  lewati dan Login jika anda sudah menpunyai akun di Cloudflare

Tahap 2 : Konfigurasi Cloudflare

klik Add site lalu isikan nama domain ang telah anda daftarkan.screencapture-www-cloudflare-com-a-add-site-1458628709239Gb. 01

klik menu DNS isikan name dengan nama domain anda, dan Ipv4 dengan ip blog anda yang di openshift (blog-winardiaris.rhcloud.com => 54.172.219.155)

$ ping blog-winardiaris.rhcloud.com
PING ec2-54-172-219-155.compute-1.amazonaws.com (54.172.219.155) 56(84) bytes of data.
64 bytes from ec2-54-172-219-155.compute-1.amazonaws.com (54.172.219.155): icmp_seq=1 ttl=39 time=261 ms
64 bytes from ec2-54-172-219-155.compute-1.amazonaws.com (54.172.219.155): icmp_seq=2 ttl=39 time=261 ms
64 bytes from ec2-54-172-219-155.compute-1.amazonaws.com (54.172.219.155): icmp_seq=3 ttl=39 time=261 ms
64 bytes from ec2-54-172-219-155.compute-1.amazonaws.com (54.172.219.155): icmp_seq=4 ttl=39 time=260 ms
^C
--- ec2-54-172-219-155.compute-1.amazonaws.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 260.900/261.092/261.223/0.380 ms

screencapture-www-cloudflare-com-a-setup-winardiaris-xyz-step-2-1458166994637
Gb. 02

klik Continue , pilih  Free Website

screencapture-www-cloudflare-com-a-setup-winardiaris-xyz-step-3-1458167028310Gb. 03

klik continue dan anda akan mendapatkan CloudFlare Nameservers yang harus anda salin dan tempel di tempat anda membeli domain ( saya membeli di rumahweb)

screencapture-www-cloudflare-com-a-setup-winardiaris-xyz-step-4-1458167040473

Gb. 04

Tahap 3 : Konfigurasi Rumahweb

Masuk Client Area _lalu pilih menu _Nameservers .

  • Klik Gunakan nameservers lain (masukkan dibawah ini)
  • Isikan Nameservers sesuai pada gambar 04

screencapture-clientzone-rumahweb-com-clientarea-php-1458167069738Gb. 05

screencapture-clientzone-rumahweb-com-clientarea-php-1458167123751Gb. 06

Tahap 4: Konfigurasi Worpress

Masuk ke dashboard Blog wordpress anda Pilih Menu Settings => General

Lalu isikan WordPress Address (URL) dan Site Address (URL) sesuai gambar 02

Screenshot - 220316 - 17:50:59Gb. 07

Tahap 5 : Konfigurasi Openshift

  • Masuk Dashboard Openshift
  • klik Menu Application
  • klik Aplikasi (disini blog-winardiaris.rhcloud.com)
  • klik change alias
  • isikan Domain sesuai gambar 02

screencapture-openshift-redhat-com-app-console-application-56e14acd2d5271cc310000f6-blog-aliases-new-1458644123494Gb. 08

Tahap 6: Cek Domain

Masuk www.winardiaris.xyz

Catatan :

Tunggu waktu propagansi oleh Cloudflare sekitar 10-30menit. jika belum berhasil silahkan cek kembali konfigurasi anda.


Tahap Tambahan 1 : Men-redirect winadiaris.xyz ke www.winardiaris.xyz

  • Masuk ke dashboard cloudflare
  • Klik menu Page Rules
  • Isikan URL Pattern dengan http://winardiaris.xyz (url asal)
  • Pilih Domain Forwading
  • Isikan Destination URL dengan http://www.winardiaris.xyx (url tujuan)

screencapture-www-cloudflare-com-a-page-rules-winardiaris-xyz-1458200193244


Tahap Tambahan 2 : Menonaktifkan SSL pada WordPress.

Masuk folder tempat anda mengklon git ( lihat pada tutorial ini)

$ cd /var/www/html/blog

Ubah pada .openshift/config/wp-config.php

$ vi .openshift/config/wp-config.php

cari

define('FORCE_SSL_ADMIN', true);

ubah menjadi

define('FORCE_SSL_ADMIN', false);

simpan dan push ke git openshift

$ git add .
$ git commit -m "force ssl admin false"
[master cd98441] force ssl admin false
 1 file changed, 1 insertion(+), 2 deletions(-)

$ git push
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 445 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Stopping PHP 5.4 cartridge (Apache+mod_php)
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Stopping MySQL 5.5 cartridge
remote: Stopping PHPMyAdmin cartridge
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Building git ref 'master', commit cd98441
remote: Checking .openshift/pear.txt for PEAR dependency...
remote: Preparing build for deployment
remote: Deployment id is 4280c25c
remote: Activating deployment
remote: Starting MySQL 5.5 cartridge
remote: Starting PHPMyAdmin cartridge
remote: Copying WordPress plugins from .openshift/plugins
remote: Copying WordPress themes from .openshift/themes
remote: Copying WordPress languages from .openshift/languages
remote: Database already configured.
remote: Starting PHP 5.4 cartridge (Apache+mod_php)
remote: Application directory "php/" selected as DocumentRoot
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://[email protected]/~/git/blog.git/
   b124b6f..cd98441  master -> master