<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rackspace | DCMST</title><link>https://portfolio.devcrumbs.com/tag/rackspace/</link><atom:link href="https://portfolio.devcrumbs.com/tag/rackspace/index.xml" rel="self" type="application/rss+xml"/><description>Rackspace</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Wed, 13 Feb 2019 00:00:00 +0000</lastBuildDate><image><url>https://portfolio.devcrumbs.com/media/icon_hu28290437db960aa4e7d19bb9f7230401_6937_512x512_fill_lanczos_center_3.png</url><title>Rackspace</title><link>https://portfolio.devcrumbs.com/tag/rackspace/</link></image><item><title>Bulk Delete Rackspace Cloud Files data via API</title><link>https://portfolio.devcrumbs.com/bulk-delete-cloud-files-api/</link><pubDate>Wed, 13 Feb 2019 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/bulk-delete-cloud-files-api/</guid><description>&lt;p>Sometimes it is necessary to delete all the content of the Cloud Files containers, however, the API does not have a proper method to delete the data and the containers on the same API call.
Also, accoring to the documentation, you can only delete &lt;strong>empty&lt;/strong> containers.&lt;/p>
&lt;p>So, in cases where you need to delete the &lt;strong>data and the containers&lt;/strong> at the same time, you should follow the next steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Download &lt;a href="https://github.com/cloudnull/turbolift" target="_blank" rel="noopener">Turbolift&lt;/a>, I know it is an old tool.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">git clone https://github.com/cloudnull/turbolift
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">cd&lt;/span> turbolift
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>In order to get and isolated installation, we are going to create a Python Virtual Environment (virtualenv)&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">mkvirtualenv turbolift
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">workon turbolift
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Install the tool&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">pip install turbolift
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Now, prior to start to play with the API calls, we need to grab some data to authenticate with the API:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Variable&lt;/th>
&lt;th>Definition&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>USERNAME&lt;/td>
&lt;td>This is the Rackspace Public Cloud username&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>APIKEY&lt;/td>
&lt;td>This is your API-KEY&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>REGION&lt;/td>
&lt;td>This is the Region where the Cloud Files are located (dfw, ord, iad, lon, hkg)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>TOKEN&lt;/td>
&lt;td>The TOKEN is generated after you get authenticated&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>ENDPOINT&lt;/td>
&lt;td>This ENDPOINT is given also after you get authenticated&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/li>
&lt;li>
&lt;p>Next step, we are going to use &lt;a href="https://curl.haxx.se/" target="_blank" rel="noopener">cURL&lt;/a>, to perform all the API calls:&lt;/p>
&lt;ul>
&lt;li>First of all, get the TOKEN:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nv">USERNAME&lt;/span>&lt;span class="o">=&lt;/span>YOUR-USERNAME
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">APIKEY&lt;/span>&lt;span class="o">=&lt;/span>YOUR-APIKEY
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">TOKEN&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="k">$(&lt;/span>curl -s -XPOST https://identity.api.rackspacecloud.com/v2.0/tokens &lt;span class="se">\
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="se">&lt;/span> -d&lt;span class="s1">&amp;#39;{&amp;#34;auth&amp;#34;:{&amp;#34;RAX-KSKEY:apiKeyCredentials&amp;#34;:{&amp;#34;username&amp;#34;:&amp;#34;&amp;#39;&lt;/span>&lt;span class="nv">$USERNAME&lt;/span>&lt;span class="s1">&amp;#39;&amp;#34;,&amp;#34;apiKey&amp;#34;:&amp;#34;&amp;#39;&lt;/span>&lt;span class="nv">$APIKEY&lt;/span>&lt;span class="s1">&amp;#39;&amp;#34;}}}&amp;#39;&lt;/span> &lt;span class="se">\
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="se">&lt;/span> -H&lt;span class="s2">&amp;#34;Content-type:application/json&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> jq &lt;span class="s1">&amp;#39;.access.token.id&amp;#39;&lt;/span> &lt;span class="p">|&lt;/span> tr -d &lt;span class="s2">&amp;#34;\&amp;#34;&amp;#34;&lt;/span>&lt;span class="k">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Next step, get the ENDPOINT:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nv">ENDPOINT&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="k">$(&lt;/span>curl -s -XPOST https://identity.api.rackspacecloud.com/v2.0/tokens &lt;span class="se">\
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="se">&lt;/span> -d&lt;span class="s1">&amp;#39;{&amp;#34;auth&amp;#34;:{&amp;#34;RAX-KSKEY:apiKeyCredentials&amp;#34;:{&amp;#34;username&amp;#34;:&amp;#34;&amp;#39;&lt;/span>&lt;span class="nv">$CL_USERNAME&lt;/span>&lt;span class="s1">&amp;#39;&amp;#34;,&amp;#34;apiKey&amp;#34;:&amp;#34;&amp;#39;&lt;/span>&lt;span class="nv">$APIKEY&lt;/span>&lt;span class="s1">&amp;#39;&amp;#34;}}}&amp;#39;&lt;/span> &lt;span class="se">\
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="se">&lt;/span> -H&lt;span class="s2">&amp;#34;Content-type:application/json&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> jq &lt;span class="s1">&amp;#39;.access.serviceCatalog[] | select((.name==&amp;#34;cloudFiles&amp;#34;) or (.name==&amp;#34;cloudFilesCDN&amp;#34;)) | {name} + .
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s1"> endpoints[] | .publicURL&amp;#39;&lt;/span> &lt;span class="p">|&lt;/span> tr -d &lt;span class="s2">&amp;#34;\&amp;#34;&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> grep -v cdn &lt;span class="p">|&lt;/span> grep -i &lt;span class="nv">$REGION&lt;/span>&lt;span class="k">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>In this case we are skipping all te CDN endpoints, but you can add them if is necessary.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>With all the collected data, next step is use turbolift to delete the Cloud Files container and their data. To do it, I use a for-loop:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="k">for&lt;/span> i in &lt;span class="k">$(&lt;/span>curl -s -H &lt;span class="s2">&amp;#34;X-Auth-Token: &lt;/span>&lt;span class="nv">$TOKEN&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span> &lt;span class="nv">$ENDPOINT&lt;/span>&lt;span class="k">)&lt;/span>&lt;span class="p">;&lt;/span> &lt;span class="k">do&lt;/span> turbolift -u &lt;span class="nv">$USERNAME&lt;/span> -a &lt;span class="nv">$APIKEY&lt;/span> --os-rax-auth &lt;span class="nv">$REGION&lt;/span> delete -c &lt;span class="nv">$i&lt;/span> &lt;span class="p">;&lt;/span> &lt;span class="k">done&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;p>Now, you have all the Data and Cloud Files containers deleted on one region.&lt;/p>
&lt;p>😄&lt;/p></description></item><item><title>WordPress with Let's Encrypt SSL Certificate on a Load Balancer</title><link>https://portfolio.devcrumbs.com/wordpress-lets-encrypt-ssl-certificate-load-balancer/</link><pubDate>Sun, 03 Sep 2017 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/wordpress-lets-encrypt-ssl-certificate-load-balancer/</guid><description>&lt;p>Hi again,&lt;/p>
&lt;p>As many of you know a lot of &amp;ldquo;Production&amp;rdquo; applications need to be configured to provide High Availability.
With that in mind, a best practice architecture to your application is to add a Load Balancer as a front end who distribute your traffic between your application nodes,
as you can appreciate on the next image:&lt;/p>
&lt;figure id="figure-ha-load-balancer">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="HA Load Balancer diagram" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/LoadBalancerHA_huebbf17380e8f6fabe11a80fc093dace1_79250_35d1701724397631ee8d755949b6ae4b.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/LoadBalancerHA_huebbf17380e8f6fabe11a80fc093dace1_79250_5dad269015cb44aa479976dd0b5659d2.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/LoadBalancerHA_huebbf17380e8f6fabe11a80fc093dace1_79250_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/LoadBalancerHA_huebbf17380e8f6fabe11a80fc093dace1_79250_35d1701724397631ee8d755949b6ae4b.webp"
width="760"
height="662"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
HA Load Balancer diagram
&lt;/figcaption>&lt;/figure>
&lt;h2 id="ssl-offloading">SSL Offloading&lt;/h2>
&lt;p>In this case, my &amp;ldquo;Production&amp;rdquo; application is my blog, and I will install a SSL Certificate on the Cloud Load Balancer(CLB)
to offloading the encryption/decryption to the CLB instead of doing it on the webserver.
That way your webservers uses port 80 (HTTP), as always, and you serve your content trought port 443(HTTPS).&lt;/p>
&lt;figure id="figure-ssl-offloading">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="SSL-Offloading diagram" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/SSL-Offloading_hu8f744432393ec982cce29c1ca941e414_24258_ff5647092c335f508c65542f46c4bdb0.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/SSL-Offloading_hu8f744432393ec982cce29c1ca941e414_24258_b3cb8a94ae9c78f78469d7a1fe4e5f56.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/SSL-Offloading_hu8f744432393ec982cce29c1ca941e414_24258_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/SSL-Offloading_hu8f744432393ec982cce29c1ca941e414_24258_ff5647092c335f508c65542f46c4bdb0.webp"
width="760"
height="238"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
SSL-Offloading diagram
&lt;/figcaption>&lt;/figure>
&lt;p>Here are the what I use to configure my WordPress with SSL Certificate:&lt;/p>
&lt;ul>
&lt;li>SSL Certificate issued using Let&amp;rsquo;s Encrypt&lt;/li>
&lt;li>A Client of Let&amp;rsquo;s Encrypt called acme&lt;/li>
&lt;li>A Cloud Load Balancer&lt;/li>
&lt;li>A WordPress installation&lt;/li>
&lt;/ul>
&lt;h3 id="step-1-install-acmesh-client">Step 1: Install acme.sh client&lt;/h3>
&lt;p>There is a lot of &lt;a href="https://letsencrypt.org/docs/client-options/" target="_blank" rel="noopener">ACME clients&lt;/a> supported by Let&amp;rsquo;s Encrypt, the most popular is &lt;a href="https://certbot.eff.org" target="_blank" rel="noopener">Certbot.&lt;/a> However, I prefer to use &lt;a href="https://github.com/Neilpang/acme.sh" target="_blank" rel="noopener">acme.sh&lt;/a>.&lt;/p>
&lt;p>Let&amp;rsquo;s install it:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">git clone https://github.com/Neilpang/acme.sh.git
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">cd&lt;/span> acme.sh
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Create a data home directory&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">sudo mkdir -p /opt/acme/data
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Actual command to install it&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">bash acme.sh --install --home /opt/acme --config-home /opt/acme/data --certhome /opt/acme/data/ssl-certs --accountemail your@email.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="step-2-issue-ssl-certificate">Step 2: Issue SSL Certificate&lt;/h3>
&lt;p>Once acme.sh is installed, we proceed to issue our first SSL Certificate:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">/opt/acme/acme.sh --issue -d example.com -w /var/www/vhosts/example.com/public_html
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> Creating domain key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> The domain key is here: /opt/acme/data/ssl-certs/example.com/example.com.key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> Single &lt;span class="nv">domain&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;example.com&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> Getting domain auth token &lt;span class="k">for&lt;/span> each domain
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> Getting webroot &lt;span class="k">for&lt;/span> &lt;span class="nv">domain&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;example.com&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:07 UTC 2017&lt;span class="o">]&lt;/span> Getting new-authz &lt;span class="k">for&lt;/span> &lt;span class="nv">domain&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;example.com&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:08 UTC 2017&lt;span class="o">]&lt;/span> The new-authz request is ok.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:08 UTC 2017&lt;span class="o">]&lt;/span> Verifying:example.com
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> Success
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> Verify finished, start to sign.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> Cert success.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">-----BEGIN CERTIFICATE-----
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">MIIE/zCCA+egAwIBAgISA2AIs/G8gWjkRkNOUb7zmqh1MA0GCSqGSIb3DQEBCwUA
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNzA4MjgwNTA0MDBaFw0x
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">NzExMjYwNTA0MDBaMBkxFzAVBgNVBAMTDmNvb2tpZWxhYnMubmV0MIIBIjANBgkq
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo8/4fXH0dOHcSlyXpsBoULhwQYkz4m0J
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">MegRHU2mhyy/jfKWM6KHDxHpFWUFajLJ/ORE4uncvjmRYeSVBxgv2R2cYoZyKd6v
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">txT+Cdj3jD9fBfDerfdfsdfsd6Y6mlr6Im61afKsFXIgLsprBpK22JU6HOz+0Fdo
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">lan09aaF8zLPtVzdfJw9MU55K7nzerxO8j4ro2lve0PHExkMIBCrXey50wcuqQRY
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">hwkbbXsm+wTES7TCn3tooSzFq6ore3JrSckxhFQ96EOea0s9CgYnw4d9rU/b3jyK
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">bFCILEJK64vgFHx0qvd0hBJFJG/HUtAXAVrFQjjlZlCmCMbnee1UTQIDAQABo4IC
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">DjCCAgowDgYDVR0pasoasoasogWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">BQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBR2KRpXKKgTorwfXpo44wgKyFUl
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">QzAfBgNVHSMEGDAWgBSoSmpjBH3duubRObemRWXv86jsoTBvBggrBgEFBQcBAQRj
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">MGEwLgYIKwYBBQUHMAASdTdddHA6Ly9vY3NwLmludC14My5sZXRzZW5jcnlwdC5v
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">cmcwLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5sZXRzZW5jcnlwdC5v
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">cmcvMBkGA1UdEQQSMBCCDmNvb2tpZWxhYnMubmV0MIH+BgNVHSAEgfYwgfMwCAYG
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Z4EMAQIBMIHmBgsrBgEEAYLfEwEBATCB1jAmBggrBgEFBQcCARYaaHR0cDovL2Nw
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">cy5sZXRzZW5jcnlwdC5vcmcwgasGCCsGAQUFBwICMIGeDIGbVGhpcyBDZXJ0aWZp
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Y2F0ZSBtYXkgb25seSBiZSByZWxpZWQgdXBvbiBieSBSZWx5aW5nIFBhcnRpZXMg
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">YW5kIG9ubHkgaW4gYWNjb3JkYW5jZSB3aXRoIHRoZSBDZXJ0aWZpY2F0ZSBQb2xp
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Y3kgZm91bmQgYXQgaHR0cHM6Ly9sZXRzZW5jcnlwdC5vcmcvcmVwb3NpdG9yeS8w
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">DQYJKoZIhvcNAQELBQADggEBAFVGs82tzyVER6U0x7p/Q+6xplDFd6ap/dVX9G6i
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">eRPf4ayGykPSH9J3ewu398LOQd3DE93oWbqc7PfEC40Z5HqvCEY3fl9auep99/IF
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">rwhf36J7PXvEsPrUB6pxNFSBw9WX366Z1MP8qoIzm3XYEpp2D/SPniWY5+eQ42Pj
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">WNxxVksA4kFUF9wgKcrsCNTm0X8GZj5HUXC1OwtlopY2w42QrAMGwz1jM4nxv5Mc
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Jim+nT0zmJUhAdQi8ocDjAl2PvcfdgfmkMr9IWH3al/GJSKy3a9Cq+BaIsIUYi6E
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">8M8Mj+00ONNn1folm9aVn+FW5fVCaxYN32ir8PnoTWkOXK8&lt;span class="o">=&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">-----END CERTIFICATE-----
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> Your cert is in /opt/acme/data/ssl-certs/example.com/example.com.cer
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> Your cert key is in /opt/acme/data/ssl-certs/example.com/example.com.key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> The intermediate CA cert is in /opt/acme/data/ssl-certs/example.com/ca.cer
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">[&lt;/span>Mon Aug &lt;span class="m">25&lt;/span> 06:04:11 UTC 2017&lt;span class="o">]&lt;/span> And the full chain certs is there: /opt/acme/data/ssl-certs/example.com/fullchain.cer
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Where the explained options are:&lt;/p>
&lt;p>-issue: Issue a new certificate&lt;/p>
&lt;p>-d (-domain) : Specifies a domain, used to issue, renew or revoke, etc.&lt;/p>
&lt;p>-w (-webroot) : Specifies the web root folder for web root mode. This is the DocumentRoot where your site is hosted and it is necessary to verify it by Let&amp;rsquo;s Encrypt.&lt;/p>
&lt;h3 id="step-3-install-ssl-certificate-on-cloud-load-balancer">Step 3: Install SSL Certificate on Cloud Load Balancer&lt;/h3>
&lt;p>So, at this moment we have our SSL Certificate, Private Key, and Intermediate CA Certificate ready to install on our Cloud Load Balancer (CLB)&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">Your cert is in /opt/acme/data/ssl-certs/example.com/example.com.cer
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Your cert key is in /opt/acme/data/ssl-certs/example.com/example.com.key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">The intermediate CA cert is in /opt/acme/data/ssl-certs/example.com/ca.cer
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>So we should go to &lt;a href="https://login.rackspace.com" target="_blank" rel="noopener">https://login.rackspace.com&lt;/a> -&amp;gt; Rackspace Cloud -&amp;gt; Networking -&amp;gt; Cloud Load Balancers:&lt;/p>
&lt;figure id="figure-clb-01">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace Portal - Cloud Loud Balancer" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB01_hu0c51bf85f3cc4b2d02a66a66d81aa589_40856_54a3e1d860e47c88df6fb2b14ba443b0.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB01_hu0c51bf85f3cc4b2d02a66a66d81aa589_40856_f218066512ada5e455967f465b00b323.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB01_hu0c51bf85f3cc4b2d02a66a66d81aa589_40856_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB01_hu0c51bf85f3cc4b2d02a66a66d81aa589_40856_54a3e1d860e47c88df6fb2b14ba443b0.webp"
width="760"
height="242"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace Portal - Cloud Loud Balancer
&lt;/figcaption>&lt;/figure>
&lt;p>Then, to Optional Features and Enable/Configure on &amp;ldquo;Secure Traffic SSL&amp;rdquo;&lt;/p>
&lt;figure id="figure-clb-02">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace Portal - Cloud Loud Balancer" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB02_hu7ffc5949d0d179fc2236bf5a390f623a_11064_a2285930ece3ab5f674dbcdacb01b0a4.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB02_hu7ffc5949d0d179fc2236bf5a390f623a_11064_f1299d84830e0d3fafe67ea941e04cae.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB02_hu7ffc5949d0d179fc2236bf5a390f623a_11064_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB02_hu7ffc5949d0d179fc2236bf5a390f623a_11064_a2285930ece3ab5f674dbcdacb01b0a4.webp"
width="732"
height="356"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace Portal - Cloud Loud Balancer
&lt;/figcaption>&lt;/figure>
&lt;p>Finally, we add our SSL Certificate, Private Key, and Intermediate CA Certificate to the CLB and save the configuration:&lt;/p>
&lt;figure id="figure-clb-03">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace Portal - Cloud Loud Balancer" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB03_hu67fb6ffec3d9916d394540c9ded24748_14067_5e34a2dc24277d867dd5c175629aa89a.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB03_hu67fb6ffec3d9916d394540c9ded24748_14067_c6786992a49821398553ae41e9200fb7.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB03_hu67fb6ffec3d9916d394540c9ded24748_14067_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/CLB03_hu67fb6ffec3d9916d394540c9ded24748_14067_5e34a2dc24277d867dd5c175629aa89a.webp"
width="534"
height="573"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace Portal - Cloud Loud Balancer
&lt;/figcaption>&lt;/figure>
&lt;h3 id="step-4-configure-wordpress">Step 4: Configure WordPress&lt;/h3>
&lt;p>We are almost done, at this time we already have configured our SSL on the CLB to provide WordPress over HTTPS, however, WordPress is still with HTTP, so we need to reconfigure our WordPress with SSL.&lt;/p>
&lt;h4 id="database-queries">Database queries&lt;/h4>
&lt;p>First of all, we should update the links from http to https; we are going to do it directly on the database doing the following queries:&lt;/p>
&lt;div class="alert alert-warning">
&lt;div>
Change all instances of &lt;code>example.com&lt;/code> to your own. If you have the &lt;code>www&lt;/code> as part of your WordPress Address(URL) in the WordPress Settings, add the &amp;lsquo;www&amp;rsquo;.
&lt;/div>
&lt;/div>
&lt;p>Also, if you have a custom table prefix in the WordPress database, something other than the default &amp;lsquo;wp_&amp;rsquo;, then you must change all the instances of &amp;lsquo;wp_&amp;rsquo; to your own table prefix.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Update any embedded attachments/img that use http:This one updates the src attributes that use double quotes:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_posts&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;src=\&amp;#34;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;src=\&amp;#34;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%src=\&amp;#34;http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This one takes care of any src attributes that use single quotes:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_posts&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;src=\&amp;#39;&lt;/span>&lt;span class="n">http&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="o">//&lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="s1">&amp;#39;, \
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s1">&amp;#39;&lt;/span>&lt;span class="n">src&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%src=\&amp;#39;&lt;/span>&lt;span class="n">http&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="o">//&lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="o">%&lt;/span>&lt;span class="s1">&amp;#39;;
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Update any hard-coded URLs for links.This one updates the URL for href attributes that use double quotes:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_posts&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;href=\&amp;#34;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;href=\&amp;#34;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%href=\&amp;#34;http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This one updates the URL for href attributes that use single quotes:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_posts&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;href=\&amp;#39;&lt;/span>&lt;span class="n">http&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="o">//&lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="s1">&amp;#39;, \
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="s1">&amp;#39;&lt;/span>&lt;span class="n">href&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">post_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%href=\&amp;#39;&lt;/span>&lt;span class="n">http&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="o">//&lt;/span>&lt;span class="n">example&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">com&lt;/span>&lt;span class="o">%&lt;/span>&lt;span class="s1">&amp;#39;;
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Update any &amp;ldquo;pinged&amp;rdquo; links:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_posts&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pinged&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">pinged&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">pinged&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>This step is just a confirmation step to make sure that there are no remaining http URLs for your site in the wp_posts table, except the GUID URLs.&lt;/p>
&lt;p>You must replace WP_DB_NAME, near the beginning of the query, with the name of your database.&lt;/p>
&lt;p>This will confirm that nowhere in the wp_posts table is there a remaining http URL, outside of the GUID column. This ignores URLs in the GUID column.&lt;/p>
&lt;p>This query only searches; it does not replace anything, nor make any changes. So, this is safe to run. It’s a safe and quick way to check the wp_posts table while ignoring the guid column.&lt;/p>
&lt;p>This SQL query should return an empty set. That would mean that it found no http URLs for your site. (This is all just 1 query. It’s 1 very,
very long line.)&lt;/p>
&lt;/li>
&lt;/ol>
&lt;div class="alert alert-warning">
&lt;div>
&lt;pre>&lt;code>Remember to replace WP_DB_NAME, near the beginning of the query, with the name of your database.
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/div>
&lt;pre>&lt;code>```sql
SELECT * FROM `WP_DB_NAME`.`wp_posts` WHERE (CONVERT(`ID` USING utf8) LIKE \
'%%http://example.com%%' OR CONVERT(`post_author` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_date` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_date_gmt` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_content` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_title` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_excerpt` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_status` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`comment_status` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`ping_status` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_password` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_name` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`to_ping` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`pinged` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_modified` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_modified_gmt` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_content_filtered` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_parent` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`menu_order` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_type` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`post_mime_type` USING utf8) LIKE '%%http://example.com%%' \
OR CONVERT(`comment_count` USING utf8) LIKE '%%http://example.com%%');
```
&lt;/code>&lt;/pre>
&lt;ol>
&lt;li>
&lt;p>Now, we move to the wp_comments table. This changes any comment author URLs that point to the http version of your site.
This is in case you&amp;rsquo;ve ever replied to a comment while your URL was pointing to http.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_comments&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">comment_author_url&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">comment_author_url&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">comment_author_url&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>This updates the content of the comments on your site. If there are any links in the comments that are linking to an http URL on your site, they will be updated to https.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_comments&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">comment_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">comment_content&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">comment_content&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Now we move to the wp_postmeta table. This takes care of any custom post meta that points to the http version of your site.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_postmeta&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">meta_value&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">REPLACE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">meta_value&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;http://example.com&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="s1">&amp;#39;https://example.com&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">meta_value&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">LIKE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;%http://example.com%&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Now we move to the wp_options table. Update the &lt;strong>WordPress Address (URL)&lt;/strong> and &lt;strong>Site Address (URL)&lt;/strong>.&lt;/p>
&lt;p>For the WordPress Address URL, you may have to modify example.com.
If you have WordPress installed in some other directory, then modify this according to your own WordPress URL.
For example, some people have WordPress installed in a subdirectory named &amp;ldquo;blog&amp;rdquo;, and so their WordPress Address would be &lt;a href="https://example.com/blog" target="_blank" rel="noopener">https://example.com/blog&lt;/a>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_options&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">option_value&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;https://example.com&amp;#34;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_options&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">option_name&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;siteurl&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This one will update the Site Address URL (this is the home page of your site):&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">UPDATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_options&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SET&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">option_value&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s2">&amp;#34;https://example.com&amp;#34;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="err">\&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">wp_options&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="n">option_name&lt;/span>&lt;span class="o">`&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;home&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h4 id="wordpress-control-panel">WordPress Control Panel&lt;/h4>
&lt;p>Besides, with run the queries directly on the database, we can update, or verify, the blog URLs, by going to Settings &amp;gt; General&lt;/p>
&lt;p>And updating your WordPress Address (URL) and Site Address (URL) address fields.&lt;/p>
&lt;figure id="figure-wp-change-url">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="WordPress - Change URL" srcset="
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/WP-ChangeURL_hu6e2977f116eeda53ba50094ce74f270b_11971_cd086c622daa44e7dfc8388d6c27f831.webp 400w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/WP-ChangeURL_hu6e2977f116eeda53ba50094ce74f270b_11971_a1cee76f695748cc9b27d52f28e41672.webp 760w,
/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/WP-ChangeURL_hu6e2977f116eeda53ba50094ce74f270b_11971_1200x1200_fit_q90_h2_lanczos_3.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/wordpress-lets-encrypt-ssl-certificate-load-balancer/WP-ChangeURL_hu6e2977f116eeda53ba50094ce74f270b_11971_cd086c622daa44e7dfc8388d6c27f831.webp"
width="760"
height="262"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
WordPress - Change URL
&lt;/figcaption>&lt;/figure>
&lt;h4 id="wordpress-config-file">WordPress Config File&lt;/h4>
&lt;p>Finally, we should add the following line to our &lt;strong>wp_config.php&lt;/strong> file&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$_SERVER&lt;/span>&lt;span class="o">[&lt;/span>&lt;span class="s1">&amp;#39;HTTPS&amp;#39;&lt;/span>&lt;span class="o">]=&lt;/span>&lt;span class="s1">&amp;#39;on&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Now, you have configured WordPress with Let&amp;rsquo;s Encrypt SSL Certificate on a Load Balancer.&lt;/p></description></item><item><title> Build a Dynamic DNS Client with Rackspace API</title><link>https://portfolio.devcrumbs.com/build-a-dynamc-dns-client-with-rackspace-api/</link><pubDate>Mon, 11 Apr 2016 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/build-a-dynamc-dns-client-with-rackspace-api/</guid><description>&lt;p>This time I&amp;rsquo;ve want to create a homemade Server with my Raspberry Pi2 and publish it using my own sub-domain,
the main problem is that the ISP provide me an dynamic IP and we should ensure that if my IP address change the sub-domain record should point to the new IP.&lt;/p>
&lt;p>The instructions assume that you:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Have a domain&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Have already changed your NS records to point to dns1.stabletransit.com and dns2.stabletransit.com.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>
&lt;p>You should download the latest version of rsdns from github&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">cd&lt;/span> ~/bin/
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">git clone https://github.com/linickx/rsdns.git
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Go to your Rackspace portal &lt;a href="https://login.rackspace.com/" target="_blank" rel="noopener">https://login.rackspace.com/&lt;/a> and grab your Username &amp;amp; API key (It&amp;rsquo;s under &amp;ldquo;Your Account&amp;rdquo; -&amp;gt; &amp;ldquo;Account Settings&amp;rdquo; -&amp;gt; &amp;ldquo;API Key&amp;rdquo;)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Create a configuration file for rsdns (~/.rsdns_config) with your settings.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">&lt;span class="cp">#!/bin/bash
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cp">&lt;/span>&lt;span class="nv">RSUSER&lt;/span>&lt;span class="o">=&lt;/span>dcmst
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">RSAPIKEY&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">1234567890&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">RSPATH&lt;/span>&lt;span class="o">=&lt;/span>~/bin/rsdns/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>You need your domain created on Rackspace(It&amp;rsquo;s under &amp;ldquo;Networking&amp;rdquo; -&amp;gt; &amp;ldquo;Cloud DNS&amp;rdquo; -&amp;gt; &amp;ldquo;Create Domain&amp;rdquo;) if you don&amp;rsquo;t have your domain created you are able to created using rsdns:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">./rsdns-domain.sh -d www.d-cmst.io -e dcmst@devcrumbs.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Once you have a domain setup you need to create an A record.
To create the A record you going to need an IP address, you can use &lt;a href="http://icanhazip.com" target="_blank" rel="noopener">http://icanhazip.com&lt;/a> to get your actual current IP.
Again to create a record you are able to do it from Rackspace panel (It&amp;rsquo;s under &amp;ldquo;Networking&amp;rdquo; -&amp;gt; &amp;ldquo;Cloud DNS&amp;rdquo; -&amp;gt; YOUR_DOMAIN -&amp;gt; &amp;ldquo;Add Record&amp;rdquo;) or you can use rsdns:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">./rsdns-a.sh -n dynamic-host.d-cmst.io -i 123.123.123.123 -t &lt;span class="m">3600&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>In the above the TTL is set to 1hr (3600 secs), this is so that DNS caches do not keep the record too long. That&amp;rsquo;s all the pre-work done, now lets get your dynamic host setup!&lt;/p>
&lt;/li>
&lt;li>
&lt;p>The script to update your a record is rsdns-dc.sh, and you run it like this:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">./rsdns-dc.sh -n dynamic-host.d-cmst.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The script uses icanhazip to get your current IP, it then update the A record with it.&lt;/p>
&lt;p>I never switch off my router so I have create a created a cronjob to run that script every 2 hours,
plus the 1hr TTL should mean that the record is roughly in sync with my IP without making unnecessary requests&lt;/p>
&lt;/li>
&lt;li>
&lt;p>I use CentOS, so I can simply drop the following file called rsdns-dc into /etc/cron.d/ with this&amp;hellip;&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">vim /etc/cron.d/rsdns-dc
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">* */2 * * * dcmst /home/dcmst/bin/rsdns/rsdns-dc.sh -n dynamic-host.d-cmst.io &lt;span class="p">&amp;amp;&lt;/span>&amp;gt;/dev/null
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;p>Now we are done! Private Dynamic DNS on your own zone using the Rackspace API.&lt;/p></description></item><item><title>View sources IP's in Apache Logs behind a Load Balancer</title><link>https://portfolio.devcrumbs.com/view-sources-ips-apache-logs-behind-loadbalancer/</link><pubDate>Fri, 13 Feb 2015 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/view-sources-ips-apache-logs-behind-loadbalancer/</guid><description>&lt;p>When you use the Rackspace Cloud Load Balancers, it is common that the IP logged in Apache is the Private IP (ServiceNet) from the Cloud Load Balancer, however, we can fix that.&lt;/p>
&lt;p>We can view sources IP&amp;rsquo;s in Apache Logs doing some changes on Apache configuration file and also on the vhosts configuration files.&lt;/p>
&lt;p>On your Apache configuration file, you should to find the line:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">LogFormat &lt;span class="s2">&amp;#34;%h %l %u %t \&amp;#34;%r\&amp;#34; %&amp;amp;gt;s %b \&amp;#34;%{Referer}i\&amp;#34; \&amp;#34;%{User-Agent}i\&amp;#34;&amp;#34;&lt;/span> combined
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Modified to:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">LogFormat &lt;span class="s2">&amp;#34;%{X-Forwarded-For}i %h %l %u %t \&amp;#34;%r\&amp;#34; %&amp;amp;gt;s %O \&amp;#34;%{Referer}i\&amp;#34; \&amp;#34;%{User-Agent}i\&amp;#34;&amp;#34;&lt;/span> combined
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>And also, on your vhosts configuration files you should to change the &amp;ldquo;combined&amp;rdquo; LogFormat definition will then be called in a &amp;ldquo;CustomLog&amp;rdquo; entry specific to your VirtualHost configuration.
Here is an example VirtualHost definition to show you what I&amp;rsquo;m referring to:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">ServerAdmin webmaster@example.com
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">DocumentRoot /var/www/html/example.com
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ServerName example.com
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ErrorLog logs/example.com-error_log
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">CustomLog logs/example.com-access_log combined
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>After adding the X-Forwarded-For definition to the LogFormat definition, you can restart Apache and view the logs to notice the difference.
If all is done properly, you will see an actual public IP in the first field of your logs instead of the Cloud Load Balancer IP.&lt;/p></description></item><item><title>I'm a Racker</title><link>https://portfolio.devcrumbs.com/im-a-racker/</link><pubDate>Mon, 31 Mar 2014 00:00:00 +0000</pubDate><guid>https://portfolio.devcrumbs.com/im-a-racker/</guid><description>&lt;p>Since January 6th I working on &lt;a href="http://www.rackspace.com/" target="_blank" rel="noopener">Rackspace&lt;/a>, the Open Cloud Company, so I&amp;rsquo;m a Racker almost 3 months ago and I&amp;rsquo;m loving every minute of it.&lt;/p>
&lt;figure id="figure-rackspace-kickoff">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Kickoff" srcset="
/media/posts/im-a-racker/Rackspace_2014_hu97f9df69980c815709b56b744b2afe31_1277016_c4223cd27b6efc378912441740b16a45.webp 400w,
/media/posts/im-a-racker/Rackspace_2014_hu97f9df69980c815709b56b744b2afe31_1277016_8a88b10b1d9db7b6f37fbf0b1d1054b5.webp 760w,
/media/posts/im-a-racker/Rackspace_2014_hu97f9df69980c815709b56b744b2afe31_1277016_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_2014_hu97f9df69980c815709b56b744b2afe31_1277016_c4223cd27b6efc378912441740b16a45.webp"
width="760"
height="567"
loading="lazy" data-zoomable class=" img-light" />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Kickoff
&lt;/figcaption>&lt;/figure>
&lt;h2 id="previous">Previous&lt;/h2>
&lt;p>Everything stared on November 2013 when a Technical Recruiter contact me and started a proceess with some long tough interviews, ability tests, paperwork, etc;
I have accepted a position as a Linux System Administrator I in the LATAM Team for Rackspace, so, I got to work for one of the most dynamic, fanatic, and fun tech companies in the world!&lt;/p>
&lt;p>So, I was very excited, nervous, happy, all together.&lt;/p>
&lt;h2 id="the-castle">The Castle&lt;/h2>
&lt;p>Since I came to The Castle, everything was wonderful, I have met nice, friendly, smart and fanatical people,
like &lt;a href="https://twitter.com/rackersugarbear" target="_blank" rel="noopener">@SugarBear&lt;/a>, a Rackspace Ambassador of Culture, or &lt;a href="https://twitter.com/gweston" target="_blank" rel="noopener">Graham Weston&lt;/a>, Rackspace&amp;rsquo;s Chairman and Co-Funder.
I met them at the Rookie Orientation (a.k.a Rookie&amp;rsquo;O), where I spend time with other Rookies learning about Rackspace history, culture and future plans.&lt;/p>
&lt;p>On the Rookie&amp;rsquo;O, I was surprised and admired with all the energy that is transmitted between the new Rackers, it was awesome!&lt;/p>
&lt;p>And I was inspired by the Rackspace Core Values:&lt;/p>
&lt;ul>
&lt;li>Fanatical Support® in all we do.&lt;/li>
&lt;li>Results first, substance over flash.&lt;/li>
&lt;li>Committed to Greatness&lt;/li>
&lt;li>Full Disclosure and Transparency&lt;/li>
&lt;li>Passion for our Work&lt;/li>
&lt;li>Treat fellow Rackers like Friends and Family&lt;/li>
&lt;/ul>
&lt;p>Which from my point of view I can applied to my personal life, and having great results.&lt;/p>
&lt;p>Also is very comfortable to have a Coffe Shop, a soda machine or microwaves inside the Castle. It is pretty nice!&lt;/p>
&lt;p>In general the first week in Rackspace, on the Rookie&amp;rsquo;O, I was a great experience, I can say that is one of my best experiences in my life.&lt;/p>
&lt;figure id="figure-rackspace-rookieo">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Rookie O" srcset="
/media/posts/im-a-racker/Rackspace_RookieO_hub2cbc3c35f6b27d4fa638699f196141b_1144827_83441913fe5094c92cc43a4a93d9d62b.webp 400w,
/media/posts/im-a-racker/Rackspace_RookieO_hub2cbc3c35f6b27d4fa638699f196141b_1144827_83e5529f91857c862ba240bbc2cc3f3d.webp 760w,
/media/posts/im-a-racker/Rackspace_RookieO_hub2cbc3c35f6b27d4fa638699f196141b_1144827_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_RookieO_hub2cbc3c35f6b27d4fa638699f196141b_1144827_83441913fe5094c92cc43a4a93d9d62b.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Rookie O
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-rackspace-fanatical-jacket">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Fanatical Jacket" srcset="
/media/posts/im-a-racker/Rackspace_FanaticalJacket_hudeb9d70ed5efd832c64e119d2afbeec5_1023967_bd8f432fa4ed8d48a10e07964d0d3953.webp 400w,
/media/posts/im-a-racker/Rackspace_FanaticalJacket_hudeb9d70ed5efd832c64e119d2afbeec5_1023967_6952966d7f090d8228b9daeccef9c879.webp 760w,
/media/posts/im-a-racker/Rackspace_FanaticalJacket_hudeb9d70ed5efd832c64e119d2afbeec5_1023967_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_FanaticalJacket_hudeb9d70ed5efd832c64e119d2afbeec5_1023967_bd8f432fa4ed8d48a10e07964d0d3953.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Fanatical Jacket
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-rackspace-fuel-station">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Fuel station" srcset="
/media/posts/im-a-racker/Rackspace_FuelStation_hu95fdeae0c2a58edd0978a06ff5980105_1202391_2a9d6c0c5227b27d1d6860fbd5158a6a.webp 400w,
/media/posts/im-a-racker/Rackspace_FuelStation_hu95fdeae0c2a58edd0978a06ff5980105_1202391_5845109cc2d61713020f973889b8847a.webp 760w,
/media/posts/im-a-racker/Rackspace_FuelStation_hu95fdeae0c2a58edd0978a06ff5980105_1202391_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_FuelStation_hu95fdeae0c2a58edd0978a06ff5980105_1202391_2a9d6c0c5227b27d1d6860fbd5158a6a.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Fuel station
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-rackspace-slide">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Slide" srcset="
/media/posts/im-a-racker/Rackspace_Slide_huaf8ccd0b3599f98acb0ed36076f7e8d0_1090662_b29aa89fad82bfc348634750d954650c.webp 400w,
/media/posts/im-a-racker/Rackspace_Slide_huaf8ccd0b3599f98acb0ed36076f7e8d0_1090662_003d657ee6df1c7721b971541395fe83.webp 760w,
/media/posts/im-a-racker/Rackspace_Slide_huaf8ccd0b3599f98acb0ed36076f7e8d0_1090662_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_Slide_huaf8ccd0b3599f98acb0ed36076f7e8d0_1090662_b29aa89fad82bfc348634750d954650c.webp"
width="567"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Slide
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-rackspace-groundtown">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - Coffee Shop" srcset="
/media/posts/im-a-racker/Rackspace_GroundTown_hud1582ace60fd2f0d9e0195d009292ecd_990215_afa2d6a82ab5f4d476901aefa013c422.webp 400w,
/media/posts/im-a-racker/Rackspace_GroundTown_hud1582ace60fd2f0d9e0195d009292ecd_990215_4ed151ce6b383af8a88dd4a05032b807.webp 760w,
/media/posts/im-a-racker/Rackspace_GroundTown_hud1582ace60fd2f0d9e0195d009292ecd_990215_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_GroundTown_hud1582ace60fd2f0d9e0195d009292ecd_990215_afa2d6a82ab5f4d476901aefa013c422.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - Coffee Shop
&lt;/figcaption>&lt;/figure>
&lt;h2 id="my-goals">My Goals&lt;/h2>
&lt;p>This is a new big challenge, because means:&lt;/p>
&lt;ul>
&lt;li>Relocation in other country, specifically in San Antonio, TX, USA.&lt;/li>
&lt;li>Leave my family in Mexico City, that means that I see my parents only for Skype or FaceTime :).&lt;/li>
&lt;li>Know other culture, the &amp;ldquo;American&amp;rdquo; culture, with the Breakfast Tacos or Tex-Mex food
(I really hate the Tex-Mex food yiack!) or the Lunch at noon, people do not always says &amp;ldquo;Good morning&amp;rdquo; and
some details that I don&amp;rsquo;t understand but here is common.&lt;/li>
&lt;li>Improve my skills in other language (English) event though I&amp;rsquo;m in the Rackspace LATAM team all the communications like emails or meetings are in English, so, it is very important for my job.&lt;/li>
&lt;li>And the most important challenge for me is still learn about Linux, get my Red Hat Certifications, do my best at job and take advantage of this great opportunity. All of that to try to be a DevOps Engineer&lt;/li>
&lt;/ul>
&lt;figure id="figure-rackspace-latam">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - LATAM Section" srcset="
/media/posts/im-a-racker/Rackspace_LATAM_hu95949b8097d407b309e20f2abb4e91dd_856072_f04077c8aa573be5541aeebf10e7385a.webp 400w,
/media/posts/im-a-racker/Rackspace_LATAM_hu95949b8097d407b309e20f2abb4e91dd_856072_1582c54ea8945af1d9628ad9d5d34921.webp 760w,
/media/posts/im-a-racker/Rackspace_LATAM_hu95949b8097d407b309e20f2abb4e91dd_856072_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_LATAM_hu95949b8097d407b309e20f2abb4e91dd_856072_f04077c8aa573be5541aeebf10e7385a.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - LATAM Section
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-rackspace-desk">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Rackspace - My Desk" srcset="
/media/posts/im-a-racker/Rackspace_MyDesk_hu58e0dbb86868380bf1fe6ae7ac59baa2_1047595_fa1427fe85442c7c2361d116b4dd0c3e.webp 400w,
/media/posts/im-a-racker/Rackspace_MyDesk_hu58e0dbb86868380bf1fe6ae7ac59baa2_1047595_6360e43c5f07718ee67bd1dc73be9a27.webp 760w,
/media/posts/im-a-racker/Rackspace_MyDesk_hu58e0dbb86868380bf1fe6ae7ac59baa2_1047595_1200x1200_fit_q90_h2_lanczos.webp 1200w"
src="https://portfolio.devcrumbs.com/media/posts/im-a-racker/Rackspace_MyDesk_hu58e0dbb86868380bf1fe6ae7ac59baa2_1047595_fa1427fe85442c7c2361d116b4dd0c3e.webp"
width="760"
height="567"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Rackspace - My Desk
&lt;/figcaption>&lt;/figure>
&lt;p>I will be working on, providing Fanatical Support for our customers, resolving LATAM customer issues with Linux and working with remote teams from all around the world.&lt;/p>
&lt;p>Summarizing, I&amp;rsquo;m a happy Racker 🙂&lt;/p></description></item></channel></rss>