{"id":4604,"date":"2021-06-17T05:56:53","date_gmt":"2021-06-17T09:56:53","guid":{"rendered":"https:\/\/www.cloudsurph.com\/?p=4604"},"modified":"2021-06-17T05:57:20","modified_gmt":"2021-06-17T09:57:20","slug":"how-to-install-nginx-on-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/","title":{"rendered":"How to Install NginX on Ubuntu (Linux)"},"content":{"rendered":"<h2><strong>How to Install NginX on Ubuntu (Linux)<\/strong><\/h2>\n<p>Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.<\/p>\n<p>This rise in demand accounting for multifaceted use as not only a web server but also as a reverse proxy, load balancer, mail proxy, and HTTP cache.<\/p>\n<p>Worthy of mention is the fact that through its rise, NginX has remained an open-source software available for free download.<\/p>\n<p>This has perhaps accounted for it becoming one of the most used web servers.<\/p>\n<p>According to Netstat, a survey of the million busiest websites showed NginX stands second to Apache with nearly 25% usage.<\/p>\n<h3><strong>Features on NginX<\/strong><\/h3>\n<p>An NginX quotes a list of features that would be too much to read in an article titled \u201cHow to install NginX\u201d.<\/p>\n<p>But, if you are going to use it, then why not know about these features? It could only help with efficient usage that would maximize user experience.<\/p>\n<p>Some unique attributes that are frequently brought up by users include the ability to serve dynamic HTTP content using FastCGI, SCGI handlers for scripts, WSGI application servers<\/p>\n<p>Or Phusion Passenger modules, and it can serve as a software load balancer.<\/p>\n<p>To handle requests, An Nginx uses an asynchronous, event-driven approach instead of threads.<\/p>\n<p>This modular architecture helps provide predictable performance under high loads.<\/p>\n<p>Wikipedia lists down more features, categorizing them as below<\/p>\n<h3><strong>HTTP proxy and Web server features<\/strong><\/h3>\n<ul>\n<li>Ability to handle more than 10,000 simultaneous connections with a low memory footprint (~2.5 MB per 10k inactive HTTP keep-alive connections)<\/li>\n<li>Handling of static files, index files, and auto-indexing<\/li>\n<li>Reverse proxy with caching<\/li>\n<li>Load balancing with in-band health checks<\/li>\n<li>TLS\/SSL with SNI and OCSP stapling support, via OpenSSL<\/li>\n<li>FastCGI, SCGI, uWSGI support with caching<\/li>\n<li>gRPC support since March 2018, version 1.13.10.<\/li>\n<li>Name- and IP address-based virtual servers<\/li>\n<li>IPv6-compatible<\/li>\n<li>WebSockets since 1.3.13, including acting as a reverse proxy and do load balancing of WebSocket applications.<\/li>\n<li>HTTP\/1.1 Upgrade (101 Switching Protocols), HTTP\/2 protocol support<\/li>\n<li>URL rewriting and redirection<\/li>\n<\/ul>\n<h3><strong>Mail proxy features<\/strong><\/h3>\n<ul>\n<li>TLS\/SSL support<\/li>\n<li>STARTTLS support<\/li>\n<li>SMTP, POP3, and IMAP proxy<\/li>\n<li>Requires authentication using an external HTTP server or by an authentication script.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><strong>System prerequisites for installing Nginx<\/strong><\/h3>\n<p>The Nginx requires you to have a regular, non-root user with Sudo privileges configured on your server. Once this is done, we can start with the installation.<\/p>\n<h3><strong>The Installation Process<\/strong><\/h3>\n<p>Since Nginx is available in Ubuntu\u2019s default repositories.<\/p>\n<p>It is possible to install it from these repositories using the apt packaging system.<\/p>\n<p>If the apt packaging system has used before, you can update your local package index so that you have access to the most recent package listings after which we can install Nginx<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4606\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/Nginx-redirect-http-to-https.jpg\" alt=\"Nginx redirect http to https\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/Nginx-redirect-http-to-https.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/Nginx-redirect-http-to-https-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<h3><strong>Adjusting the Firewall<\/strong><\/h3>\n<p>Before testing Nginx, the firewall software needs to adjust to allow access to the service.<\/p>\n<p>An Nginx registers itself as a service with ufw upon installation, making it straightforward to allow Nginx access.<\/p>\n<p>You can pull up the application configurations recognized by and compatible with ufw by running the following command<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4607\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl.jpg\" alt=\"nginx ssl\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>A listing of the application profiles will appear below<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4608\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl-letsencrypt.jpg\" alt=\"nginx ssl letsencrypt\" width=\"625\" height=\"140\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl-letsencrypt.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-ssl-letsencrypt-480x108.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>It appears from the list above that there are three profiles available for NginX<\/p>\n<ul>\n<li><strong>The Nginx Full<\/strong>: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS\/SSL encrypted traffic)<\/li>\n<li><strong>Nginx HTTP<\/strong>: This profile opens only port 80 (normal, unencrypted web traffic)<\/li>\n<li><strong>Nginx HTTPS<\/strong>: This profile opens only port 443 (TLS\/SSL encrypted traffic)<\/li>\n<\/ul>\n<p>Since SSL hasn\u2019t configured for our server in these instructions, we will only need to allow traffic on port 80.<\/p>\n<p>Thus, recommended that you enable the most restrictive profile that will still allow the traffic you\u2019ve configured.<\/p>\n<h4>Enable the selection you make by using the command:<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4609\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy.jpg\" alt=\"\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>To verify the profile change has implemented, use<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4610\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy-digitalocean.jpg\" alt=\"\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy-digitalocean.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-reverse-proxy-digitalocean-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>This will show allowed HTTP traffic, which displays as follows<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4611\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-vs-apache.jpg\" alt=\"nginx vs apache\" width=\"625\" height=\"193\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-vs-apache.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-vs-apache-480x148.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>The web server should already be up and running even before you allowed <a href=\"https:\/\/www.httpdebugger.com\/http\/http_traffic.html\">HTTP traffic<\/a> and adjusted the firewall. But, you can still make sure of this using the following command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4612\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-server.jpg\" alt=\"nginx server\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-server.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-server-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>The output will display service status along with more statistics<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4613 size-full\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-location.jpg\" alt=\"linux\" width=\"625\" height=\"215\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-location.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-location-480x165.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>Although the service can be seen running in the display above, you can access the default Nginx landing page to confirm that the software is running properly by navigating to your web server\u2019s IP address.<\/p>\n<p>If you do not know your server\u2019s IP address, you can get it using the server\u2019s command prompt.<\/p>\n<p>Type the server IP in the command prompt<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4614 size-full\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-try_files.jpg\" alt=\"linux laptop\" width=\"625\" height=\"58\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-try_files.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-try_files-480x45.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n<p>The following <a href=\"https:\/\/www.cloudsurph.com\/\">NginX landing page<\/a> will welcome you<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4616\" src=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-config-1.jpg\" alt=\"server IP \" width=\"625\" height=\"212\" srcset=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-config-1.jpg 625w, https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/nginx-config-1-480x163.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 625px, 100vw\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install NginX on Ubuntu (Linux) Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers. This rise in demand accounting for multifaceted use as not only a web server but also as a reverse proxy, load balancer, mail proxy, and HTTP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4605,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[61,126,93,52,125,124,127],"class_list":["post-4604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtual-private-servers","tag-1-vps","tag-1-vps-promo-plans","tag-1-dollar-vps","tag-cheap-storage-server","tag-plesk","tag-virtual-server","tag-vps-speed-test"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting<\/title>\n<meta name=\"description\" content=\"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.\" \/>\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.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting\" \/>\n<meta property=\"og:description\" content=\"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudsurph Web Hosting Washington D.C.\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CloudSurph\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-17T09:56:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-17T09:57:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"624\" \/>\n\t<meta property=\"og:image:height\" content=\"328\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"cloudsurph\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Cloud_Surph\" \/>\n<meta name=\"twitter:site\" content=\"@Cloud_Surph\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cloudsurph\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/\"},\"author\":{\"name\":\"cloudsurph\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/person\\\/50b3e0f168996ffad285babe518bd5c8\"},\"headline\":\"How to Install NginX on Ubuntu (Linux)\",\"datePublished\":\"2021-06-17T09:56:53+00:00\",\"dateModified\":\"2021-06-17T09:57:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/\"},\"wordCount\":748,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NginX-on-Ubuntu.jpg\",\"keywords\":[\"$1 VPS\",\"$1 VPS Promo Plans\",\"1 Dollar VPS\",\"Cheap Storage Server\",\"Plesk\",\"Virtual Server\",\"VPS Speed Test\"],\"articleSection\":[\"VPS Servers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/\",\"name\":\"How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NginX-on-Ubuntu.jpg\",\"datePublished\":\"2021-06-17T09:56:53+00:00\",\"dateModified\":\"2021-06-17T09:57:20+00:00\",\"description\":\"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NginX-on-Ubuntu.jpg\",\"contentUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NginX-on-Ubuntu.jpg\",\"width\":624,\"height\":328,\"caption\":\"NginX on Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/how-to-install-nginx-on-ubuntu-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudsurph.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install NginX on Ubuntu (Linux)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#website\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/\",\"name\":\"Cloudsurph Web Hosting Washington D.C.\",\"description\":\"Dedicated Server Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cloudsurph.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\",\"name\":\"CloudSurph Technology Solutions\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/cloudsurph-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/cloudsurph-logo.png\",\"width\":2348,\"height\":1692,\"caption\":\"CloudSurph Technology Solutions\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/CloudSurph\\\/\",\"https:\\\/\\\/x.com\\\/Cloud_Surph\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/person\\\/50b3e0f168996ffad285babe518bd5c8\",\"name\":\"cloudsurph\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g\",\"caption\":\"cloudsurph\"},\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/author\\\/cloudsurph\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting","description":"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.","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.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting","og_description":"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.","og_url":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/","og_site_name":"Cloudsurph Web Hosting Washington D.C.","article_publisher":"https:\/\/www.facebook.com\/CloudSurph\/","article_published_time":"2021-06-17T09:56:53+00:00","article_modified_time":"2021-06-17T09:57:20+00:00","og_image":[{"width":624,"height":328,"url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg","type":"image\/jpeg"}],"author":"cloudsurph","twitter_card":"summary_large_image","twitter_creator":"@Cloud_Surph","twitter_site":"@Cloud_Surph","twitter_misc":{"Written by":"cloudsurph","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#article","isPartOf":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/"},"author":{"name":"cloudsurph","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/person\/50b3e0f168996ffad285babe518bd5c8"},"headline":"How to Install NginX on Ubuntu (Linux)","datePublished":"2021-06-17T09:56:53+00:00","dateModified":"2021-06-17T09:57:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/"},"wordCount":748,"publisher":{"@id":"https:\/\/www.cloudsurph.com\/#organization"},"image":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg","keywords":["$1 VPS","$1 VPS Promo Plans","1 Dollar VPS","Cheap Storage Server","Plesk","Virtual Server","VPS Speed Test"],"articleSection":["VPS Servers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/","url":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/","name":"How to Install NginX on Ubuntu (Linux) - Cloudsurph Web Hosting","isPartOf":{"@id":"https:\/\/www.cloudsurph.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg","datePublished":"2021-06-17T09:56:53+00:00","dateModified":"2021-06-17T09:57:20+00:00","description":"Since its release in 2004, NginX on Ubuntu has slowly but definitely grown to become one of the most popular web servers.","breadcrumb":{"@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#primaryimage","url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg","contentUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2021\/06\/NginX-on-Ubuntu.jpg","width":624,"height":328,"caption":"NginX on Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudsurph.com\/how-to-install-nginx-on-ubuntu-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudsurph.com\/"},{"@type":"ListItem","position":2,"name":"How to Install NginX on Ubuntu (Linux)"}]},{"@type":"WebSite","@id":"https:\/\/www.cloudsurph.com\/#website","url":"https:\/\/www.cloudsurph.com\/","name":"Cloudsurph Web Hosting Washington D.C.","description":"Dedicated Server Hosting","publisher":{"@id":"https:\/\/www.cloudsurph.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudsurph.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cloudsurph.com\/#organization","name":"CloudSurph Technology Solutions","url":"https:\/\/www.cloudsurph.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2016\/04\/cloudsurph-logo.png","contentUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2016\/04\/cloudsurph-logo.png","width":2348,"height":1692,"caption":"CloudSurph Technology Solutions"},"image":{"@id":"https:\/\/www.cloudsurph.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CloudSurph\/","https:\/\/x.com\/Cloud_Surph"]},{"@type":"Person","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/person\/50b3e0f168996ffad285babe518bd5c8","name":"cloudsurph","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/089d9378933748b2a3fac82523f9ceda07f27b01a73c8ce36afaa8a942395917?s=96&d=mm&r=g","caption":"cloudsurph"},"url":"https:\/\/www.cloudsurph.com\/author\/cloudsurph\/"}]}},"_links":{"self":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/4604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/comments?post=4604"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/4604\/revisions"}],"predecessor-version":[{"id":4617,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/4604\/revisions\/4617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/media\/4605"}],"wp:attachment":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/media?parent=4604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/categories?post=4604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/tags?post=4604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}