<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[DevCloud Blog - Medium]]></title>
        <description><![CDATA[Official blog for Bluehost DevCloud - Medium]]></description>
        <link>https://medium.com/devcloud?source=rss----b940bdca974---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>DevCloud Blog - Medium</title>
            <link>https://medium.com/devcloud?source=rss----b940bdca974---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:44:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/devcloud" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[New plans and tariffs for DevCloud on BigRock]]></title>
            <link>https://medium.com/devcloud/new-plans-and-tariffs-for-devcloud-on-bigrock-1df14a942a24?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/1df14a942a24</guid>
            <category><![CDATA[film]]></category>
            <dc:creator><![CDATA[Aditya Ramakrishnan]]></dc:creator>
            <pubDate>Mon, 12 Mar 2018 06:05:27 GMT</pubDate>
            <atom:updated>2018-03-12T06:05:27.045Z</atom:updated>
            <content:encoded><![CDATA[<p>As communicated earlier, DevCloud will be moving its customers to BigRock this week (March 12–16, 2018). You will need to renew your instances by prepaying for a specific time period.</p><p>Our initial communication on the migration and its impact can be found <a href="https://blog.devcloud.hosting/important-changes-to-bluehost-devcloud-4039f609b421">here</a></p><p>Migration dates and schedule can be found <a href="https://blog.devcloud.hosting/devcloud-migration-dates-for-migration-to-bigrock-7a456dea2da0">here</a></p><h3><strong>We are pleased to announce new plans and pricing scheme for DevCloud servers:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wO51s4ULOcsNDSbK." /></figure><p>Our sales team will be contacting you to assist with the renewal and term extension process.</p><p><strong>Discount Terms and Conditions:</strong></p><ul><li>Discounted pricing will not be available for new purchases on BigRock.</li><li>This pricing will be applicable for renewal of existing instances of migrated DevCloud customers only, for tenures of 1 year or higher</li><li>After migration, all your instances will be automatically renewed for 1 month, with a pending invoice, due by April 13, 2018.</li><li>You can settle the invoice for a 1 month renewal or extend your tenure for 1 year or higher.</li></ul><p>We are committed to making the transition as simple and hassle-free as possible. If at any time you require assistance on the process, contact BigRock at <strong>0824–661–4009 (Mon — Fri 10AM — 7PM) </strong>or or send an email to support@devcloud.hosting for technical support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1df14a942a24" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/new-plans-and-tariffs-for-devcloud-on-bigrock-1df14a942a24">New plans and tariffs for DevCloud on BigRock</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevCloud Migration — Dates for Migration to Bigrock]]></title>
            <link>https://medium.com/devcloud/devcloud-migration-dates-for-migration-to-bigrock-7a456dea2da0?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/7a456dea2da0</guid>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Aditya Ramakrishnan]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 06:58:04 GMT</pubDate>
            <atom:updated>2018-02-26T06:58:04.286Z</atom:updated>
            <content:encoded><![CDATA[<p>As communicated earlier, w.e.f. March 2018, DevCloud will be merging with Bigock and we will be migrating to a new platform with a new instance and user management interface.</p><p><strong>The DevCloud to BigRock migration will occur in the week of March 12, 2018 — March 16, 2018.</strong></p><p>To enable the migration, we will be locking the DevCloud control panel entirely on Midnight <strong>March 12, 2018.</strong></p><p>There will be <strong>no downtime </strong>for existing instances. Existing instances will continue to run as-is without any interruption.</p><p>After this date, the DevCloud control panel will be read-only. Any changes to your account can be made from the BigRock Panel after <strong>March 16, 2018.</strong></p><p>BigRock accounts for existing DevCloud customers this week itself. <strong>No action is needed from our customers at this time.</strong></p><p>Over the coming weeks, we will also be contacting our customers to assist with the renewal and term extension process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a456dea2da0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/devcloud-migration-dates-for-migration-to-bigrock-7a456dea2da0">DevCloud Migration — Dates for Migration to Bigrock</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important changes to Bluehost DevCloud]]></title>
            <link>https://medium.com/devcloud/important-changes-to-bluehost-devcloud-4039f609b421?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/4039f609b421</guid>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Aditya Ramakrishnan]]></dc:creator>
            <pubDate>Thu, 01 Feb 2018 13:47:38 GMT</pubDate>
            <atom:updated>2018-03-08T08:09:34.172Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>UPDATE: Please see </strong><a href="https://blog.devcloud.hosting/devcloud-migration-dates-for-migration-to-bigrock-7a456dea2da0"><strong>this link </strong></a><strong>for the migration dates to BigRock</strong></p><p>As Bluehost DevCloud approaches 2 years of age, we are now planning how we can best serve our customers on a greater scale. To achieve this goal, we are making some significant changes to the Bluehost Devcloud.</p><p>With effect <strong>March 1, 2018</strong>, Bluehost DevCloud:</p><ul><li><strong>Will be merging with BigRock — </strong>BigRock is the premier domains and hosting brand in India. With this move, Bluehost DevCloud brings its customers onto a robust platform supporting over 50,000 premier hosting customers.</li><li><strong>Will be moving to a new platform — </strong>Bluehost DevCloud customers will be able to manage their account from BigRock.</li><li><strong>Will become a prepaid service </strong>— On March 01, existing DevCloud customers will need to pay their bill for February based on the postpaid bill generation. Immediately after that DevCloud will be converted to prepaid billing cycle. New plans and pricing will be announced shortly.</li></ul><p><strong>Existing servers will not be affected at all before, during and after the migration.</strong></p><p>The migration will only affect the control panel. Whatever data is stored on customer servers will not be affected in any way. Customers can access their servers through SSH as normal.</p><p>Please refer to our <a href="https://devcloud.hosting/mfaq.html">FAQ section</a> for further details.</p><p>We are committed to making the transition as simple and hassle-free as possible. If at any time you require assistance on the process, please contact BigRock’s support at <strong>0824–661–4009 (Mon-Fri 10AM — 7 PMa</strong>or send an email to <a href="/service/mailto:support@devcloud.hosting">support@devcloud.hosting</a>.</p><p>Please stay tuned for further communications on access and renewal instructions and new pricing information in the coming weeks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4039f609b421" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/important-changes-to-bluehost-devcloud-4039f609b421">Important changes to Bluehost DevCloud</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevCloud : How to connect a Domain]]></title>
            <link>https://medium.com/devcloud/devcloud-how-to-connect-a-domain-5739c449b295?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/5739c449b295</guid>
            <category><![CDATA[domain-names]]></category>
            <category><![CDATA[connect-domain]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[devcloud]]></category>
            <dc:creator><![CDATA[Prafull Salunke]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 09:09:09 GMT</pubDate>
            <atom:updated>2017-11-24T09:09:51.141Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial we will help you to connect your domain name to your new instance created on DevCloud.</p><p>Let’s say you purchased a domain name ‘johndoe.com’ from a domain name provider i.e Bigrock, Godaddy, Hostgator, etc.</p><p>Connecting this domain name to your server is quite simple.</p><p>Make sure you have a http server (apache/nginx) running on your server and listening to port 80.</p><p>We would recommend using nginx for easy and flixible traffic routing. If you wish to use apache you can do so, just ensure port 80 is publicly available.</p><p>To set up an apache or nginx server refer this link &lt;<a href="https://blog.devcloud.hosting/how-to-setup-a-basic-apache-nginx-web-server-and-some-basic-functionality-f6a5e379d797">https://blog.devcloud.hosting/how-to-setup-a-basic-apache-nginx-web-server-and-some-basic-functionality-f6a5e379d797</a>&gt;</p><h3>Finding your public IP</h3><p>After creating an instance, click on the “Cloud Instances” tab on your DevCloud control panel as shown below. This is where you will find the public IP of your server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0ToRMgMIUxUPcl4Y." /><figcaption>DevCloud Cloud Instances Tab</figcaption></figure><p>In the above example 50.57.195.189 is a public IP. You will require this to connect to your domain name provider.</p><h3>Mapping your public ip to your domain</h3><p>Once you have an http server running on port 80 on your server, all you need to do is login to your domain name provider.</p><p>All domain name providers have a DNS MANAGEMENT page. A typical DNS management server consists of a few Records (A, CNAME, MX, TXT, FTP, etc). Similar to the image shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zyoINRd1UIX5h9sz." /><figcaption>This is for reference only and the Page might not look exactly like this.</figcaption></figure><p>Out of these we will require A record and CNAME record for domain mapping.</p><h3>A Records</h3><p>A Records are the most basic type of DNS records used to point a domain or subdomain to an IP address.</p><p>Assign the IP address of your DevCloud to the “Value” of ‘A record’ and ‘@’ as the “Name” of your naked domain (johndoe.com).</p><h3>CNAME Records</h3><p>Another type of Record in the above example is the CNAME record. CNAME records are commonly used DNS entry that points a domain or subdomain to another hostname.</p><p>In the screenshot above, the @ symbol is used to state that the www hostname should point to the naked domain(johndoe.com) and use its value, which the A Record in the image above, points to 50.57.195.189.</p><p>This means that if the value of the naked/primary domain changes, the record of www will be affected.</p><p>That’s all! Your domain johndoe.com will now start pointing to your server.</p><p>The DNS changes usually take up to 24 hours to Propagate to your IP address, but it depends on the Domain Name Providers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5739c449b295" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/devcloud-how-to-connect-a-domain-5739c449b295">DevCloud : How to connect a Domain</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup a basic Apache / Nginx web server and some basic functionality]]></title>
            <link>https://medium.com/devcloud/how-to-setup-a-basic-apache-nginx-web-server-and-some-basic-functionality-f6a5e379d797?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/f6a5e379d797</guid>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Nishreen Bandukwala]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 08:19:20 GMT</pubDate>
            <atom:updated>2017-11-24T08:19:19.662Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we start setting up a nginx /apache web server , let’s try to understand what a web server actually means.</p><p>A web server is generally required to host any content that you want it to be accessible from the web. It also responds back to request made from any client (web browsers like chrome,firefox ,Internet Explorer) for the content hosted on web server . Apache and Nginx are two very common web server currently used .</p><p>Let’s start with first installing and setting up apache web server on linux machine .</p><h3><strong>Setup Apache web server</strong></h3><p>Apache web server is developed and maintained by Apache Software Foundation and OS ,one of the most used web server .</p><p>To install the apache on linux right way , let’s first update the package that requires upgrading using the following command:</p><pre>$ sudo apt-get update</pre><p>Great !Now use the below command to install the latest version of apache .</p><pre>$ <strong>sudo apt-get install apache2</strong></pre><p>Done ! You have installed the basic apache web server now .</p><p>How to check if it is installed ?</p><p>Open any browser(preferring firefox) and type your IP address in the url search bar , if it shows something similar to the screenshot below , voila ,you are good to proceed .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*Y2eQyKI08CBD2I4VxGYHIw.png" /></figure><p>In case if it shows any error , check if the apache2 server is up and running .</p><p>You can check this using command:</p><pre>$  netstat -ntlp. </pre><p>Apache generally runs on port 80. If there is no entry for apache in netstat , try restarting the apache2 web server using below command .</p><pre>$ <strong>sudo service apache2 restart</strong></pre><h3>ADVANCE CONFIGURATIONS</h3><h4>Configure Virtual Hosting</h4><p>Virtual hosting allows hosting multiple domains on a single web server using a single IP .</p><p>If you check the default virtual hosting file , you will find the content similar to the below code .</p><pre><strong>$ cat /etc/apache2/sites-available/000-default.conf</strong></pre><pre><strong>&lt;VirtualHost *:80&gt;</strong></pre><pre><strong>ServerAdmin webmaster@localhost</strong></pre><pre><strong>DocumentRoot /var/www/html</strong></pre><pre><strong>ErrorLog ${APACHE_LOG_DIR}/error.log</strong></pre><pre><strong>CustomLog ${APACHE_LOG_DIR}/access.log combined</strong></pre><pre><strong>&lt;/VirtualHost&gt;</strong></pre><p>This default config mentions that the apache server will handle any request on port 80, the standard http port. And the web content for this server is hosted in “/var/www/html”.</p><p>There are various ways to set up name-based virtual hosting, this method is however much easier compared to other .</p><p>First , disable the default Apache virtual host with the following command:</p><pre>$  <strong> sudo a2dissite 000-default.conf</strong></pre><p>Now let’s start with creating over own config .</p><p>Create my_site.conf in /etc/apache2/sites-available/ with any text editor and add the below lines into that file .</p><pre>$ <strong>&lt;VirtualHost *:80&gt;<br>     ServerAdmin </strong><a href="/service/mailto:webmaster@mysite.com"><strong>webmaster@mysite.com</strong></a></pre><pre><strong>ServerName mysite.com<br>     DocumentRoot /var/www/html/mysite/<br>    ErrorLog ${APACHE_LOG_DIR}/error.log</strong></pre><pre><strong>CustomLog ${APACHE_LOG_DIR}/access.log combined</strong></pre><pre><strong>&lt;/VirtualHost&gt;</strong></pre><p>Create the web content directory which is <strong>/var/www/html/mysite/</strong> and place all your content in there .</p><p>Enable the site using:</p><pre>$ <strong>sudo a2ensite my_site.conf</strong></pre><p>Finally , restart the Apache :</p><pre>$ <strong>sudo service apache2 restart</strong></pre><h3><strong>Setup Nginx web server</strong></h3><p>Nginx installation is as easier as the apache web server installation as Nginx is also available in the Ubuntu’s default repo’s .</p><p>If you have apache installed already then please uninstall it and then proceed to install nginx.</p><pre><strong>$ sudo apt-get update</strong></pre><pre><strong>$ sudo apt-get install nginx</strong></pre><p>To check the Nginx installed, you can either check with below command or can simply check the localhost in any web browser .</p><pre><strong>$ service nginx status</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*b2pGBY4gn0M16Mqz5eAoXA.png" /></figure><p>The heart of Nginx lies in /etc/nginx . This directory consists of various config files that help Nginx working correctly .</p><p>Generally when you install Nginx on your Linux system , It runs on port 80 and the content are fetched from the directory /var/www/html .</p><p>These all properties are mentioned in the respective config file . You can find the default one inside /etc/nginx/site-available as default .This file also helps with redirection flow and access control .</p><p>Apart from this you need to be aware of some more commands as these can come handy:</p><ol><li>Whenever you want to stop the nginx process:</li></ol><pre>$ service nginx stop</pre><p>2. Whenever you want to start the nginx process:</p><pre>$   service nginx start</pre><p>3. Whenever you want to stop the running process and start it again:</p><pre>$  service nginx restart</pre><p>4. The following command helps you to find out whether there is any syntax error in config .This should be checked always before restarting/starting the nginx server .</p><pre>$   service nginx  configtest</pre><p>Now let’s try to understand the server block in nginx .Below is a very generic server block of nginx .</p><pre>$ <strong>server {</strong></pre><pre><strong>listen 80 default_server;</strong></pre><pre><strong>listen [::]:80 default_server;</strong></pre><pre><strong>root /var/www/html;</strong></pre><pre><strong>server_name    _;</strong></pre><pre><strong>location / {</strong></pre><pre><strong>try_files $uri $uri/ =404;</strong></pre><pre><strong>}</strong></pre><pre><strong>}</strong></pre><ol><li>Listen directive mentioned in the server block specifies the TCP port and hostname/IP that nginx should listen for any HTTP connection . By default the server is localhost and port is 80 .In case you want to change the port number or IP for nginx to listen to , you should update that here .</li><li>Root directive specifies the directory which is hosting the web content .All your web pages will be rendered from here . By default it is mentioned as /var/www/html but you can always change this too as per your need .</li><li>location directive lets you configure how nginx will respond to requests for resources within the server</li></ol><p>Below are some of the Best practice for Nginx .</p><ol><li>Always take a backup of the config file before editing it .</li></ol><pre>$ cp  /etc/nginx/site-available/my_conf  /etc/nginx/site-available/my_conf.backup</pre><ol><li>Always check for syntax error using configtest before reloading/restarting nginx server .</li><li>Never keep all the configuration inside a single config file , try to keep as small modules classified on the basis of maybe functionality or use-case or hostname etc.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6a5e379d797" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/how-to-setup-a-basic-apache-nginx-web-server-and-some-basic-functionality-f6a5e379d797">How to setup a basic Apache / Nginx web server and some basic functionality</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upgrade your account to get full access on Bluehost DevCloud]]></title>
            <link>https://medium.com/devcloud/how-to-upgrade-your-account-to-get-full-access-on-bluehost-devcloud-51ecffae4b68?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/51ecffae4b68</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Nishreen Bandukwala]]></dc:creator>
            <pubDate>Mon, 06 Nov 2017 13:57:29 GMT</pubDate>
            <atom:updated>2017-11-27T08:31:59.299Z</atom:updated>
            <content:encoded><![CDATA[<p>After completing your free trial on Bluehost DevCloud, upgrade your account to get full access to all our features.<strong> You can also create and manage more than one instance of different sizes</strong>!</p><p>To do so, all you need to do is follow these 5 simple steps:</p><p><strong>1)Login into your account</strong></p><p>Login to your Bluehost DevCloud account here: <a href="https://devcloud.hosting/auth/login">Login</a> (Ignore this step if you are already logged in)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*srjCpc-9MNEB8Mpm3d3Cqg.png" /><figcaption>P.S. Do Check out our new social logins.</figcaption></figure><p><strong>2) Go to the Upgrade Page:</strong></p><p>After you are logged into your account, click on the <strong>“Get Full Access”</strong> button visible on the bar above the control panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voIPAoly2mSq7c95gYEKeg.png" /></figure><p><strong>3) Add a payment method:</strong></p><p>Click on the “Add Credit/ Debit card” button to add your credit card to your account. A <strong>minimum of ₹50 </strong>will be charged to your card as transaction fee, which will be refunded within 7 working days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MVvM1Dldnbpalh-EwACzQ.png" /></figure><p><strong>4) Make Your Payment and Save Your Card:</strong></p><p>Fill in the billing and payments details on this page and click on the “Continue” button to process your payment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*ccb8tK5jS5O6N_9CXefyLQ.png" /></figure><p><strong>5) Review and Check</strong> :</p><p>After the payment has been made, you will be directed to the billing summary and payment page. You can view your balance here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*LCZnmURF9N8Nm3y67qKTbQ.png" /></figure><p>That’s it! Your account has now been upgraded and your existing instance is saved from being deleted.</p><p>Note: Your invoices for all your instances will be generated on the 1st of every month and will be charged directly through your card.</p><figure><a href="https://devcloud.hosting/auth/login"><img alt="" src="https://cdn-images-1.medium.com/max/491/1*VJpj12ygPiGDp4-R3jPHUg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ecffae4b68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/how-to-upgrade-your-account-to-get-full-access-on-bluehost-devcloud-51ecffae4b68">How to upgrade your account to get full access on Bluehost DevCloud</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Security: A different game]]></title>
            <link>https://medium.com/devcloud/cloud-security-a-different-game-9bcd0a8b1f7f?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/9bcd0a8b1f7f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[insights]]></category>
            <dc:creator><![CDATA[Nishreen Bandukwala]]></dc:creator>
            <pubDate>Mon, 06 Nov 2017 06:17:04 GMT</pubDate>
            <atom:updated>2017-11-06T12:25:09.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S2Npcew6M8j7Hd10KEtzwQ.png" /></figure><p>In the (relatively) older days of entire private data centers, the struggle with implementing robust security was two-fold:</p><p><strong>Complexity of the stack: </strong>In the days before virtualization was the norm, it was not uncommon to see a single server acting as an email server, end-user Windows update server as well as a logging server for both. This was especially the case with small business with smaller scale that needed to re-use server hardware to minimize costs. On top of this implementing a good information security policy — hardening OSs, controlling access and restricting ports was often a messy and unwieldy job.</p><p><strong>Updates and Patches: </strong>A big chunk of work for any corporate information security team is keeping with the Joneses..um..vulnerabilities. Zero-day, in the wild, patched, unpatched, etc. etc. etc. Managing the state of patching vis-a-vis vulnerabilities without jamming the works of the various applications running on the server was a mighty task unto itself.</p><p>Today, in the days of cloud computing, the game has changed, especially in the public cloud sphere. The #1 blocker against cloud adoption<a href="https://dome9.com/wp-content/uploads/2017/03/2017-Cloud-Security-Trends.pdf"> <strong>continues to be cloud security</strong></a>. The <a href="https://www.mcafee.com/us/solutions/lp/cloud-security-report.html"><strong>McAfee / Cloud Security Alliance study </strong></a>even states that nearly 1 in 2 organizations have slowed down cloud adoption due to Information Security concerns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*MO2NW6oE-aih7WtAJfJYvQ.png" /></figure><p>An aspect of cloud IT is the fact that there isn’t a single idea of cloud. A SME can use 8–10 SaaS products, 2–3 PaaS platforms, and 2–3 products implemented as custom solutions on an IaaS platform. Sensitive data, especially customer data, tends to reside in various forms, in various levels of protection across all these points of usage. All of them have their unique degree of complexity and control for IT security to manage. All of this leads to new difficulties:</p><p><strong>Control: </strong>This manifests as probably the major problem for cloud security. How is the customer database on my cloud CRM stored? Is it encrypted? Who else has access in the name of “operations”? What is the underlying infra? How secure is it? Who else is a tenant on it?</p><p><strong>Tenancy: </strong>The analogy for resident applications has shifted applications living in their own country manor to residing in a crowded apartment. Just like when a raucous party trashes the entire corridor, sometimes the presence of another attractive target; or the presence of so many targets can induce an attack. There are plenty of instances of DDoS and data theft attacks against services for various reasons which have often little to nothing to do with their client’s business.</p><p><strong>What about the little guy?</strong></p><p>In the Lean Cloud, many things are left to the end-user, including security. It is one thing to be a Netflix or an Uber and be able to invest time, people and effort into cloud security. Even they face a shortage. What about the SME, the startup or the freelancer? Handling security is an ask that is often too much. This was the thinking behind the <a href="https://devcloud.hosting/#features">Bluehost DevCloud firewall</a>, our most beloved feature.</p><figure><a href="https://devcloud.hosting/"><img alt="" src="https://cdn-images-1.medium.com/max/491/1*P7xEQGJ7D92vONeJYawKMg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bcd0a8b1f7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/cloud-security-a-different-game-9bcd0a8b1f7f">Cloud Security: A different game</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with HTTP/2]]></title>
            <link>https://medium.com/devcloud/getting-started-with-http-2-ec22924d4069?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/ec22924d4069</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[http2]]></category>
            <dc:creator><![CDATA[Azhar Hussain]]></dc:creator>
            <pubDate>Wed, 11 Oct 2017 05:49:32 GMT</pubDate>
            <atom:updated>2017-10-11T05:49:31.979Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the years the amount of data that needs to be retrieved for displaying a website has gradually risen up, with the causal increase in the number of resources that need to be fetched for rendering the page.</p><h3>Problems with HTTP /1.1</h3><ul><li>Establishing a new TCP connection for each new request.</li><li>Parallelism is achieved via having multiple concurrent TCP connections.</li><li>Head of the line blocking</li></ul><p>TCP is best suited for connections that last longer. Most HTTP transfers are short busts, whereas TCP is optimized for long-lived, bulk data transfers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9f_xVvnExk7EiR2OLdQiw.jpeg" /><figcaption>Massive TCP overhead for tiny HTTP transfers</figcaption></figure><h3>What do you get from shifting to HTTP/2.0</h3><ol><li>More efficient use of network resources</li></ol><ul><li>One TCP connection</li><li>Header field compression</li><li>Multiplexed bidirectional streams for data transfer</li><li>Priority of traffic</li></ul><p>2. Server push</p><ul><li>Push resources from server to client, before they are requested. Multiple responses can be clubbed together.</li></ul><p>The advent of multiplexing and server push removes the need to use practises like sprites and in-lining content.<br>No changes are made to functional components such as HTTP methods, status codes and URIs. The underlying changes are handled implicitly, which translates to no changes to your code base.</p><h3>Streams, Frames and Messages</h3><p><strong>Frame</strong>: Smallest unit<br><strong>Messages</strong>: Bunch of frames put together<br><strong>Streams</strong>: Bidirectional flow established within a connection, carrying one or more messages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRklgt86a9LCueIQixehDw.jpeg" /><figcaption>Streams in HTTP/2.0</figcaption></figure><p>A single HTTP/2.0 connection contains multiple streams; Streams can be established by either the client or server and they can be closed by either endpoint. The order in which frames are sent within a stream is significant. Recipients process frames in the order they are received. Each stream may be assigned an integer weight between 1 and 256. Multiplexing the streams means that packages from many streams are mixed over the same connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZC4-k9FvoNxbmFs89NhBgQ.jpeg" /><figcaption>Private key was pre-loaded into wireshark before packet captures, hence the decrypted SSL data is available</figcaption></figure><h3>Setting up HTTP/2.0 with NGINX:</h3><pre># add http2 option in the nginx.conf file<br>listen       443 ssl  http2</pre><pre># ensure http2 module is present<br>$ nginx -V <br># Output should have --with-http_v2_module</pre><p>Check version of NGINX:</p><pre>$ yum list installed | grep nginx<br>nginx.x86_64 1:1.10.2–1.el7 <a href="http://twitter.com/epel">@epel</a></pre><pre>$ nginx -V<br>nginx version: nginx/1.10.2<br>built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)<br>built with OpenSSL 1.0.1e-fips 11 Feb 2013<br>TLS SNI support enabled<br>configure arguments: ....</pre><p>NGINX needs to be rebuilt with OpenSSL 1.0.2 or above and re-installed to support ALPN.</p><h3>ALPN (Application Layer Protocol Negotiation)<br><a href="https://tools.ietf.org/html/rfc7301">https://tools.ietf.org/html/rfc7301</a></h3><p>When multiple application protocols are supported on a single server-<br> side port number, such as port 443, the application protocol be used between the client and the server should be negotiated to a common denominator in the least expensive way.<br> Google Chrome has now dropped support for NPN and only support HTTP/2 over ANPN.<br>While HTTP/2.0 doesn’t require TLS to be present, no major browser supports http2 without TLS.</p><p>Setting up OpenSSL:</p><pre>$ yum install -y gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools-devel</pre><pre>$ wget -c <a href="https://www.openssl.org/source/openssl-1.0.2l.tar.gz">https://www.openssl.org/source/openssl-1.0.2l.tar.gz</a></pre><pre>$ tar -xf openssl-1.0.2h.tar.gz -C /usr/local/</pre><pre>$ ./config</pre><pre>$ make depend</pre><pre>$ make<br>$ # param INSTALLTOP=/usr/local/ssl location for openssl in Makefile</pre><pre>$ make test</pre><pre>$ make install</pre><pre>$ mv /usr/bin/openssl /usr/bin/openssl_old</pre><pre>$ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl</pre><pre>$ openssl version # verification step should return OpenSSL 1.0.2h<br>OpenSSL 1.0.2h</pre><p>Setting up NGINX:</p><pre>$ wget <a href="http://nginx.org/download/nginx-1.12.0.tar.gz">http://nginx.org/download/nginx-1.12.0.tar.gz</a></pre><pre>$ tar -xvzf nginx-1.12.0.tar.gz</pre><pre>$ # flags according to the setup present in nginx currently, some modules may not be required <br>$ # Providing the path for the OpenSSL to use --with-openssl=/usr/local/openssl-1.0.2h/ </pre><pre>$ NGINX_FLAGS=&quot;--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-google_perftools_module --with-debug --with-openssl=/usr/local/openssl-1.0.2h/&quot;</pre><pre>$ ./configure ${NGINX_FLAGS}</pre><pre>$ make</pre><pre>$ make install</pre><pre>$ nginx -v # verification step<br>nginx version: nginx/1.12.0<br>built with OpenSSL 1.0.2h<br></pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e0167053fccb08a1852efb1f75d8cc6/href">https://medium.com/media/7e0167053fccb08a1852efb1f75d8cc6/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6402e9da99c971909677b973d051989/href">https://medium.com/media/a6402e9da99c971909677b973d051989/href</a></iframe><p>Speed up observed on the landing page of devcloud:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyLFTQ5CNdmxei0qyVIx3g.jpeg" /><figcaption>Rendering metrics from <a href="http://www.dareboost.com/">http://www.dareboost.com</a></figcaption></figure><p>While HTTP/2 doesn’t address all the issues which could have been solved and may be arguably heavily based on the SPDY implementation, the load time is in general faster(in various degrees of-course).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec22924d4069" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/getting-started-with-http-2-ec22924d4069">Getting started with HTTP/2</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up A LogRhythm Agent Through Puppet]]></title>
            <link>https://medium.com/devcloud/setting-up-a-logrhythm-agent-through-puppet-ff5f61a8c36b?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/ff5f61a8c36b</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[puppet]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Siddharth Deshpande]]></dc:creator>
            <pubDate>Mon, 09 Oct 2017 06:08:45 GMT</pubDate>
            <atom:updated>2017-10-09T06:09:25.830Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CkMCEqvW6OEFTo1CiEb8Q.png" /></figure><p><a href="https://logrhythm.com/">LogRhythm</a> provides a useful suite of threat analysis products that can require you to have agents running on all the machines you want to monitor. As always, when we have to do the same thing on many machines, configuration management is the obvious way to go. So let us see how to do this via Puppet.</p><h4>Environment</h4><ul><li>Puppet Server (Master) version 3.8.7</li><li>Puppet agent 3.7.3</li><li>Operating System: CentOS 7</li></ul><p>We use the Puppet roles/profiles pattern with Hiera. Hence, I create a new profile for logrhythm which will then be included on all the servers on which I want to deploy the agent.</p><p>Download the <strong>scsm</strong> RPM and do a test install on a suitable machine. Modify the config file (<strong>/opt/logrhythm/scsm/config/scsm.ini</strong>) and put in the IP of your LogRhythm server in it:</p><pre># IP address or DNS name of the Mediator this Agent will connect to.<br>-Host=CHANGE_THIS<br>+Host=A.B.C.D</pre><p>Save this modified file and the RPM file in the Puppet codebase directory:</p><pre>$ mkdir modules/profile/files/logrhythm/<br>$ cp Downloads/scsm-&lt;ver&gt;.el7.x86_64.rpm modules/profile/files/logrhythm/<br>$ cp scsm.ini modules/profile/files/logrhythm/</pre><p>Create a new manifest for the LogRhythm profile with the following content:</p><pre>$ cat modules/profile/manifests/logrhythm.pp</pre><pre>class profile::logrhythm {<br>  if $::osfamily == &#39;redhat&#39; and $::operatingsystemmajrelease == &#39;7&#39; {<br>      $package_dir = &quot;/opt/logrhythm&quot;<br>      package_name = &quot;scsm-&lt;ver&gt;.el7.x86_64.rpm&quot;<br>      conf_dir     = &quot;/opt/logrhythm/scsm/config&quot;</pre><pre>file {[$package_dir, &#39;/opt/logrhythm/scsm&#39;, $conf_dir]:<br>            ensure  =&gt; directory,<br>            owner   =&gt; root,<br>            group   =&gt; root,<br>        }</pre><pre>file {&quot;$package_name&quot;:<br>       require =&gt; File[$package_dir],<br>       path    =&gt; &quot;$package_dir/$package_name&quot;,<br>       ensure  =&gt; file,<br>       owner   =&gt; root,<br>       group   =&gt; root,<br>       source =&gt; &quot;puppet:///modules/profile/logrhythm/$package_name&quot;<br>      }</pre><pre>package {&#39;scsm&#39;:<br>            require  =&gt; File[$package_name],<br>            ensure   =&gt; installed,<br>            provider =&gt; &#39;rpm&#39;,<br>            source   =&gt; &quot;$package_dir/$package_name&quot;,<br>        }</pre><pre>file {&#39;scsmConfig&#39;:<br>            path          =&gt; &#39;/opt/logrhythm/scsm/config/scsm.ini&#39;,<br>            subscribe     =&gt; Package[&#39;scsm&#39;],<br>            require       =&gt; File[$conf_dir],<br>            ensure        =&gt; present,<br>            owner         =&gt; root,<br>            group         =&gt; root,<br>            mode          =&gt; 600,<br>            source=&gt; &#39;puppet:///modules/profile/logrhythm/scsm.ini&#39;,<br>        }</pre><pre>service {&#39;scsm&#39;:<br>            ensure    =&gt; running,<br>            enable    =&gt; true,<br>            subscribe =&gt; File[&#39;scsmConfig&#39;],<br>        }<br>    }<br>}</pre><p>Include this profile in your Hiera YAML node/role definition:</p><pre>---<br>classes:<br>  - profile::logrhythm</pre><p>Once you push this code to your Puppet server, just run puppet agent on all the servers on which you want to install and configure the LogRhythm agent, and you’re in business. Unless you have to navigate through firewalls, your server should now be able to collect data from all your servers.</p><h4>Note</h4><p>Puppet is really not built to be a good file server, hence the construct I have used above (source =&gt; ‘puppet:///modules/profile/logrhythm/scsm.ini’,) is frowned upon. You really ought to have your own yum repo to manage custom RPM’s and this method should not be used except in really one-off cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff5f61a8c36b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/setting-up-a-logrhythm-agent-through-puppet-ff5f61a8c36b">Setting Up A LogRhythm Agent Through Puppet</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring nginx for quickly switching to maintenance mode]]></title>
            <link>https://medium.com/devcloud/configuring-nginx-for-quickly-switching-to-maintenance-mode-e4136cf497f3?source=rss----b940bdca974---4</link>
            <guid isPermaLink="false">https://medium.com/p/e4136cf497f3</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Siddharth Deshpande]]></dc:creator>
            <pubDate>Mon, 25 Sep 2017 07:52:40 GMT</pubDate>
            <atom:updated>2022-07-08T17:26:32.272Z</atom:updated>
            <content:encoded><![CDATA[<p>Enable/disable a proper maintenance page for your site with a single command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPdSZrYFpw8EPXpZKF6YzQ.png" /></figure><p>If you’re reading this, you’ve probably been through a journey which doesn’t end as well as you thought. You thought it ended with the protagonist as the happy sysadmin or developer who painstakingly setup a web server and then lived happily ever after.</p><p>Except that that happily ever after lasted all of a few weeks (months, if you were lucky) before someone came and told you, “Quick! It’s an emergency! We need to take the site offline for maintenance immediately.”</p><p>And then you were left scrambling through many dozens of lines (at the very least) of nginx configuration to figure out how to cleanly put up a maintenance page so that people visiting your site during the downtime window get a reassuring message that your site is actually down for a proper maintenance and not just a blank or random error page which makes your customers wonder if your site just keeled over and died.</p><p>And now imagine that the same thing happens again. After a few weeks. And then again. And then some more. Don’t worry, you don’t have to tear your hair out in frustration, all you need to do is configure your web server a little differently, so that the next time someone comes to you screaming, “Quick! It’s an emergency, we need to take the site down”, all you need to do is rename <strong>one file</strong> on your web server and Boom! Your site show up as under maintenance. Rename it again, and you’re back in business. As easy as that.</p><p>Here’s how we would go about accomplishing this.</p><ul><li>Create a maintenance page. Your nginx installation should already have bundled some default error pages like 50x.html and 404.html. You can just copy and then edit these putting in the appropriate content you want to show at maintenance time.</li></ul><pre>cp /usr/share/nginx/html/404.html /usr/share/nginx/html/maintenance_page.html</pre><ul><li>Then, edit the nginx config section relevant to your site (in my case, the <strong>location /</strong> block). This installation of nginx is acting as a reverse-proxy to the actual web app, and I have some directives to transmit appropriate headers by which the back end web app can see the originating IP, for example.</li></ul><pre>location / {<br>                proxy_pass <a href="http://mywebapp1/">http://mywebapp</a>;<br>                proxy_set_header Host $host;<br>                proxy_set_header X-Real-IP $remote_addr;<br>                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>                proxy_set_header X-Forwarded-Proto $scheme;<br>        }</pre><ul><li>Add a configuration directive to check for the existence of a specific file on every request matching this location. So I change the above config to:</li></ul><pre>location / {<br>                if (-f $document_root/under_maintenance.html) {<br>                        return 503;<br>                }<br>                proxy_pass <a href="http://mywebapp1/">http://mywebapp</a>;<br>                proxy_set_header Host $host;<br>                proxy_set_header X-Real-IP $remote_addr;<br>                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>                proxy_set_header X-Forwarded-Proto $scheme;<br>        }</pre><p>The conditional inserted above will make nginx immediately return a 503 code if a file named <strong>under_maintenance.html</strong> is present in the document root. Why 503, you ask? That’s because the <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4">HTTP Status Definitions RFC</a> says it is the most appropriate status to return when your site is actually down for maintenance:</p><blockquote>10.5.4 503 Service Unavailable</blockquote><blockquote>The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.</blockquote><p>You could add a Retry-After header as recommended, but I’m not going to do it because every maintenance can last a different amount of time, and so having to specify the time interval properly would mean editing the nginx config in real time during maintenance — which is exactly what I want to avoid to begin with.</p><ul><li>Next, if you look closely at your nginx conf file you would see sections like these:</li></ul><pre>error_page 404 /404.html;<br>                location = /40x.html {<br>        }<br>error_page 500 502 503 504 /50x.html;<br>                location = /50x.html {</pre><p>This tells nginx what location (document) to use when a request results in one of the specified HTTP errors. Delete the “503” from this directive and make a new one for it:</p><pre>error_page 503 /under_maintenance.html;<br>                location = /under_maintenance.html {<br>        }</pre><ul><li>Save and check the new config to make sure there are no errors:</li></ul><pre># nginx- t<br>nginx: the configuration file /etc/nginx/nginx.conf syntax is ok<br>nginx: configuration file /etc/nginx/nginx.conf test is successful</pre><ul><li>Once you see a success message like this, reload nginx:</li></ul><pre># systemctl reload nginx.service</pre><p>(since my machine uses systemd).</p><p>And, we’re done. The next time you want to put your nginx on maintenance, you just need to login to the machine and run this <strong>one</strong> command:</p><pre>mv /usr/share/nginx/html/maintenance_page.html /usr/share/nginx/html/under_maintenance.html</pre><p>The next request it receives will find the “under_maintenance.html” file, receive a 503 return code with a page that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zxv4ssN8GDrJp_-dTfYiCA.png" /></figure><p>To end maintenance, simply reverse that command:</p><pre>mv /usr/share/nginx/html/under_maintenance.html /usr/share/nginx/html/maintenance_page.html</pre><p>And your server is back online.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4136cf497f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcloud/configuring-nginx-for-quickly-switching-to-maintenance-mode-e4136cf497f3">Configuring nginx for quickly switching to maintenance mode</a> was originally published in <a href="https://medium.com/devcloud">DevCloud Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>