{"id":19627,"date":"2016-07-15T07:50:57","date_gmt":"2016-07-15T12:50:57","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19627"},"modified":"2022-12-16T05:19:58","modified_gmt":"2022-12-16T11:19:58","slug":"install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/","title":{"rendered":"Install Sails.js on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-25124\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\" alt=\"Install Sails.js on CentOS 7\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>We&#8217;ll show you, how to install Sails.js on\u00a0\u00a0CentOS 7,\u00a0\u00a0with Apache configured as a reverse proxy. Sails.js is a Javascript framework designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps:<br \/>\ndata-driven APIs with a scalable, service-oriented architecture.<br \/>\nSails.js is database agnostic, automatically generates a RESTful JSON API for your app, provides basic security and role-based access control by default, has automatic asset minification and many more.<!--more--><\/p>\n<p>It&#8217;s especially good for building chat, real time dashboards, or multiplayer games; but you can use it for any web application project &#8211; top to bottom.<\/p>\n<h4>REQUIREMENTS<\/h4>\n<p>We will be using our SSD 1 <a href=\"https:\/\/rosehosting.com\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> hosting plan for this tutorial.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_1 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69c4a69aae77c\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69c4a69aae77c\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#1-Log-in-to-your-server-via-SSH\" >1. Log in to your server via SSH:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#2-Update-the-system\" >2. Update the system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#3-Install-the-Nodejs-platform\" >3. Install the Node.js platform<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#4-Download-Nodejs\" >4. Download Node.js<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#5-Compile-and-install-Nodejs\" >5. Compile and install Node.js<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#6-Install-Sailsjs\" >6. Install Sails.js<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#7-Create-a-new-Sails-project\" >7. Create a new Sails project:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#8-Configure-Apache-as-a-reverse-proxy\" >8. Configure Apache as a reverse proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#9-Restart-Apache-web-server\" >9. Restart Apache web server<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Log-in-to-your-server-via-SSH\"><\/span>1. Log in to your server via SSH:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre># ssh root@server_ip<\/pre>\n<p>Before starting, enter the command below to check whether you have the proper version of CentOS installed on your machine:<\/p>\n<pre># cat \/etc\/redhat-release<\/pre>\n<p>which should give you the underneath output:<\/p>\n<pre>CentOS Linux release 7.2.1511 (Core)<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Update-the-system\"><\/span>2. Update the system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Make sure your server is fully up to date:<\/p>\n<pre># yum update<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-the-Nodejs-platform\"><\/span>3. Install the Node.js platform<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before installing Sails.js we need to install the Node.js platform. But first, install some much needed tools:<\/p>\n<pre># yum install yum-utils bzip2 bzip2-devel wget curl tar\r\n\r\n# yum groupinstall \"Development Tools\"<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Download-Nodejs\"><\/span>4. Download Node.js<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once the install is completed, navigate to your server \/opt directory and download the latest (at the time of writing this tutorial) Node.js version with the below two commands:<\/p>\n<pre># cd \/opt\r\n\r\n# wget http:\/\/nodejs.org\/dist\/v0.12.9\/node-v0.12.9.tar.gz<\/pre>\n<p>Unpack the archive:<\/p>\n<pre># tar -xzf node-v0.12.9.tar.gz<\/pre>\n<p>Enter the unpacked directory:<\/p>\n<pre># cd node-v0.12.9<\/pre>\n<p>5.\u00a0Configure Node.js<\/p>\n<p>Next, configure Node.js sources by setting the &#8211;prefix flag to \/usr\/local, so that NodeJS will be installed in this location and will be usable to all users on the Linux VPS:<\/p>\n<pre># .\/configure --prefix=\/usr\/local<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Compile-and-install-Nodejs\"><\/span>5. Compile and install Node.js<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once the configuration is completed, compile and install Node.js using the following commands:<\/p>\n<pre># make\r\n\r\n# make install<\/pre>\n<p>After the installation is finished, check the Node.js version with:<\/p>\n<pre># node --version<\/pre>\n<p>Which should give you the following output:<\/p>\n<pre># v0.12.9<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Install-Sailsjs\"><\/span>6. Install Sails.js<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now you can install Sails.js. In your command line interface type:<\/p>\n<pre># npm -g install sails<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Create-a-new-Sails-project\"><\/span>7. Create a new Sails project:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre># cd &amp;&amp; sails new yourprojectName<\/pre>\n<p>8. Start and configure Sailis<\/p>\n<p>Start the server and make it work in the background using:<\/p>\n<pre># cd yourprojectName &amp;&amp; sails lift &amp;<\/pre>\n<p>By default the server is listening on 127.0.0.1:1337<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8-Configure-Apache-as-a-reverse-proxy\"><\/span>8. Configure Apache as a reverse proxy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Last but not least you need to configure Apache as a reverse proxy for your domain. With your favorite text editor open a new file. We are using vim:<\/p>\n<pre># vim \/etc\/httpd\/conf.d\/your_domain.conf<\/pre>\n<p>Once the file is opened, paste the below lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName your_domain.com\r\nServerAlias www.your_domain.com\r\n\r\nProxyRequests Off\r\n&lt;Proxy *&gt;\r\nOrder deny,allow\r\nAllow from all\r\n&lt;\/Proxy&gt;\r\n\r\nProxyPass \/ http:\/\/your_domain.com:1337\/\r\nProxyPassReverse \/ http:\/\/your_domain.com:1337\/\r\n&lt;Location \/&gt;\r\nOrder allow,deny\r\nAllow from all\r\n&lt;\/Location&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Restart-Apache-web-server\"><\/span>9. Restart Apache web server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Don&#8217;t forget to replace your_domain.com with your actual domain. Save and close the file. Restart Apache for the changes to take effect:<\/p>\n<pre># service httpd restart<\/pre>\n<p>Congratulations, you have successfully installed Sails.js and configured Apache as a reverse proxy.<\/p>\n<p>Your next step is to open your favorite web browser and navigate to http:\/\/your_domain.com where you will be welcomed by a page as shown in the picture below:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-19629 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/sails.png\" alt=\"sails\" width=\"600\" height=\"357\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/sails.png 1319w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/sails-300x178.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/sails-768x456.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/sails-1024x609.png 1024w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>For more info about the Sails.js framework please go to <a href=\"https:\/\/sailsjs.com\/\">their official documentation<\/a>.<\/p>\n<hr \/>\n<p>Of course you don\u2019t have to Install Sails.js on CentOS 7, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS Optimized VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><span style=\"color: #000000;\">.<\/span><\/span> If you liked this post, on how to\u00a0Install Sails.js on CentOS 7,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you, how to install Sails.js on\u00a0\u00a0CentOS 7,\u00a0\u00a0with Apache configured as a reverse proxy. Sails.js is a Javascript framework &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install Sails.js on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#more-19627\" aria-label=\"Read more about Install Sails.js on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25124,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13,1712],"tags":[37,34,1316,357,414],"class_list":["post-19627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","category-web-frameworks","tag-apache","tag-centos","tag-mvc","tag-node-js","tag-sails-js","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install Sails.js on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Install Sails.js on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Sails.js on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"Install Sails.js on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-15T12:50:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-16T11:19:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install Sails.js on CentOS 7\",\"datePublished\":\"2016-07-15T12:50:57+00:00\",\"dateModified\":\"2022-12-16T11:19:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\"},\"wordCount\":573,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\",\"keywords\":[\"apache\",\"centos\",\"mvc\",\"node.js\",\"sails.js\"],\"articleSection\":[\"CentOS\",\"Tutorials\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\",\"name\":\"Install Sails.js on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\",\"datePublished\":\"2016-07-15T12:50:57+00:00\",\"dateModified\":\"2022-12-16T11:19:58+00:00\",\"description\":\"Install Sails.js on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Install Sails.js on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Sails.js on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install Sails.js on CentOS 7 | RoseHosting","description":"Install Sails.js on CentOS 7 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Install Sails.js on CentOS 7","og_description":"Install Sails.js on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-07-15T12:50:57+00:00","article_modified_time":"2022-12-16T11:19:58+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install Sails.js on CentOS 7","datePublished":"2016-07-15T12:50:57+00:00","dateModified":"2022-12-16T11:19:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/"},"wordCount":573,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg","keywords":["apache","centos","mvc","node.js","sails.js"],"articleSection":["CentOS","Tutorials","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/","name":"Install Sails.js on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg","datePublished":"2016-07-15T12:50:57+00:00","dateModified":"2022-12-16T11:19:58+00:00","description":"Install Sails.js on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/07\/Install-Sails.js-on-CentOS-7.jpg","width":1200,"height":600,"caption":"Install Sails.js on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-sails-js-with-apache-as-a-reverse-proxy-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install Sails.js on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=19627"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19627\/revisions"}],"predecessor-version":[{"id":44358,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19627\/revisions\/44358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/25124"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=19627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=19627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=19627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}