{"id":12591,"date":"2022-09-11T07:26:33","date_gmt":"2022-09-11T11:26:33","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=12591"},"modified":"2022-09-11T07:30:19","modified_gmt":"2022-09-11T11:30:19","slug":"how-to-install-nginx-on-ubuntu-22-04","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/","title":{"rendered":"How to Install Nginx on Ubuntu 22.04 and Create First Site"},"content":{"rendered":"\n

Before we show you how to install Nginx on Ubuntu 22.04, we need to give you a bit of background. Nginx, created and released by Igor Sysoev back in 2004, is one of the most popular web servers in use today. It is popular for serving high traffic websites due to it being a lightweight alternate to servers like Apache<\/a>. It is popular as a web server or reverse proxy.<\/p>\n\n\n\n

Prerequisites<\/h2>\n\n\n\n

To succeed with the steps in this tutorial you will ne to have a regular, non-root user with sudo<\/code> privileges configured on your server. You can find those details on this post on getting started with Ubuntu 22.04<\/a>.<\/p>\n\n\n\n

Step 1 \u2013 Install Nginx<\/h2>\n\n\n\n

Nginx being available in Ubuntu\u2019s default repositories, we will go ahead and use that convenience to to install Nginx using the apt packaging system.<\/p>\n\n\n\n

First we need to update our local package index to the most recent package listings, Once done we can then install the Nginx<\/a> web server. These are the two commands to run.<\/p>\n\n\n\n

$ sudo apt update<\/code><\/pre>\n\n\n\n
$ sudo apt install nginx<\/code><\/pre>\n\n\n\n

Step 2 \u2013 Configure the Firewall for Nginx<\/h2>\n\n\n\n

Before you can this web server, the firewall software needs to be configured to allow access to the Nginx service. Since Nginx registers itself as a service with ufw upon installation, we can take advantage of that to configure the firewall.<\/p>\n\n\n\n

Run the command below to list the application configurations that are registered with ufw:<\/p>\n\n\n\n

$ sudo ufw app list<\/code><\/pre>\n\n\n\n
Output\nAvailable applications:\n  Nginx Full\n  Nginx HTTP\n  Nginx HTTPS\n  ...<\/code><\/pre>\n\n\n\n

As you can see there are three profiles set by Nginx with the following meanings:<\/p>\n\n\n\n

  • Nginx Full<\/strong>: Opens both port 80 for unencrypted web traffic and port 443 for TLS\/SSL encrypted traffic<\/li>
  • Nginx HTTP<\/strong>: Opens only port 80 for unencrypted web traffic<\/li>
  • Nginx HTTPS<\/strong>: Opens only port 443 for TLS\/SSL encrypted traffic<\/li><\/ul>\n\n\n\n

    Because in this tutorial scope we are not dealing with the installation of SSL certificates we will pick the second option and enable only port 80 for demonstration purposes. Usually with firewalls you want to open the most restrictive profile for your use case.<\/p>\n\n\n\n

    $ sudo ufw allow 'Nginx HTTP'<\/code><\/pre>\n\n\n\n

    The check the status using this command:<\/p>\n\n\n\n

    $ sudo ufw status<\/code><\/pre>\n\n\n\n

    Your output will look similar to this:<\/p>\n\n\n\n

    Output\nStatus: active\n\nTo                         Action      From\n--                         ------      ----\nOpenSSH                    ALLOW       Anywhere                  \nNginx HTTP                 ALLOW       Anywhere                  \nOpenSSH (v6)               ALLOW       Anywhere (v6)             \nNginx HTTP (v6)            ALLOW       Anywhere (v6)\n...<\/code><\/pre>\n\n\n\n

    After installation of Nginx service and configuring the firewall, you can run the command below to check and confirm the status of Nginx service.<\/p>\n\n\n\n

    $ sudo systemctl status nginx<\/code><\/pre>\n\n\n\n
    Output\n\u25cf nginx.service - A high performance web server and a reverse proxy server\n   Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\n   Active: active (running) since Fri 2022-08-01 13:34:55 UTC; 33min ago\n     Docs: man:nginx(8)\n Main PID: 43169 (nginx)\n    Tasks: 2 (limit: 2289)\n   Memory: 7.3M\n   CGroup: \/system.slice\/nginx.service\n           \u251c\u250043169 nginx: master process \/usr\/sbin\/nginx -g daemon on; master_process on;\n           \u2514\u250043170 nginx: worker process<\/code><\/pre>\n\n\n\n

    At this point you can access the default Nginx landing page to confirm that the web server is running properly by navigating to your server’s IP address using your web browser.<\/p>\n\n\n\n

    http:\/\/your_server_ip<\/strong><\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Nginx Configuration Reference<\/h2>\n\n\n\n

    The following are the configuration files and directories used by the Nginx web server by default.<\/p>\n\n\n\n

    • \/etc\/nginx\/nginx.conf<\/strong>: The main configuration file for Nginx server.<\/li>
    • \/etc\/nginx\/conf.d<\/strong>: The directory that contains configuration files for the applications configured with Nginx such as phpMyAdmin etc.<\/li>
    • \/etc\/nginx\/sites-available<\/strong>: Contains all (active and inactive) websites (virtual hosts or server blocks) configuration files.<\/li>
    • \/etc\/nginx\/sites-enabled<\/strong>: Contains active websites configuration files. These are linked to the sites-available directory.<\/li>
    • \/etc\/nginx\/modules-available<\/strong>: Contains all modules configuration files available on server<\/li>
    • \/etc\/nginx\/modules-enabled<\/strong>: Contains activated modules configuration files. These are linked to modules-enabled directory.<\/li><\/ul>\n\n\n\n

      Step 4 \u2013 Setting Up Nginx Server Blocks or Virtual Hosts (Recommended)<\/h2>\n\n\n\n

      Nginx web server uses server blocks which are similar to what we refer to as virtual hosts in Apache. Theses are used to encapsulate the independent configurations for each unique website or application served by the web server.<\/p>\n\n\n\n

      Here we will set up a server block for the domain example.com. Be sure to replace this with your own domain name.<\/p>\n\n\n\n

      By default when you install Nginx on Ubuntu 22.04 you get on server block enabled by default that is configured to serve documents from the \/var\/www\/html<\/code> directory. We will leave that configuration intact as a fallback. Instead let’s create a directory for example.com.<\/p>\n\n\n\n

      We will create this structure using the -p<\/code> flag to create any necessary parent directories:<\/p>\n\n\n\n

      $ sudo mkdir -p \/var\/www\/example.com\/html<\/code><\/pre>\n\n\n\n

      Next, assign ownership of the directory:<\/p>\n\n\n\n

      $ sudo chown -R $USER:$USER \/var\/www\/example.com\/html<\/code><\/pre>\n\n\n\n

      Set up permissions to allow the owner to read, write, and execute the files while granting only read and execute permissions to groups and others, you can input the following command:<\/p>\n\n\n\n

      $ sudo chmod -R 755 \/var\/www\/example.com<\/code><\/pre>\n\n\n\n

      Create a basic index.html page using nano<\/strong>, vi<\/strong> or your favorite editor:<\/p>\n\n\n\n

      $ nano \/var\/www\/example.com\/html\/index.html<\/code><\/pre>\n\n\n\n

      Add the following HTML code into the file:<\/p>\n\n\n\n

      <html>\n    <head>\n        <title>Welcome to example.com<\/title>\n    <\/head>\n    <body>\n        <h1>Success, example.com is live<\/h1>\n    <\/body>\n<\/html><\/code><\/pre>\n\n\n\n

      Save and close the file by pressing Ctrl+X<\/code> to exit, then when prompted to save, Y<\/code> and then Enter<\/code>.<\/p>\n\n\n\n

      Now we need to tell Nginx how to serve the page we just created.<\/p>\n\n\n\n

      $ sudo nano \/etc\/nginx\/sites-available\/example.com<\/code><\/pre>\n\n\n\n
      server {\n        listen 80;\n        listen [::]:80;\n\n        root \/var\/www\/example.com\/html;\n        index index.html index.htm index.nginx-debian.html;\n\n        server_name example.com www.example.com;\n\n        location \/ {\n                try_files $uri $uri\/ =404;\n        }\n}<\/code><\/pre>\n\n\n\n

      Next, we should enable the file by creating a link from it to the sites-enabled<\/strong> directory:<\/p>\n\n\n\n

      $ sudo ln -s \/etc\/nginx\/sites-available\/example.com \/etc\/nginx\/sites-enabled\/<\/code><\/pre>\n\n\n\n

      The link we created above is necessary because Nginx uses symbolic links, or symlinks, to track which of your server blocks are enabled.<\/p>\n\n\n\n

      Next, open the main configuration file for Nginx server:<\/p>\n\n\n\n

      $ sudo nano \/etc\/nginx\/nginx.conf<\/code><\/pre>\n\n\n\n

      Find the server_names_hash_bucket_size<\/code> directive and remove the #<\/code> symbol to uncomment the line. In nano<\/code>, you can quickly search for words in the file by pressing CTRL<\/code> and w<\/code>.<\/p>\n\n\n\n

      ...\nhttp {\n    ...\n    server_names_hash_bucket_size 64;\n    ...\n}\n...<\/code><\/pre>\n\n\n\n

      Save and close the file when you are finished. We do this to avoid a possible hash bucket memory problem that can arise from adding additional server names.<\/p>\n\n\n\n

      Next, test to make sure that there are no syntax errors in any of your Nginx files:<\/p>\n\n\n\n

      $ sudo nginx -t<\/code><\/pre>\n\n\n\n

      If there are errors go back and repeat the process and check for any spelling or syntax errors otherwise restart Nginx service.<\/p>\n\n\n\n

      $ sudo systemctl restart nginx<\/code><\/pre>\n\n\n\n

      Test your new configuration by navigating to http:\/\/example.com<\/strong>. (Remember to substitute example.com<\/strong> with your own domain).<\/p>\n\n\n\n

      Step 5 \u2013 Nginx Service Management<\/h2>\n\n\n\n

      These are some of the basic management commands you will need to know during the lifetime of your server.<\/p>\n\n\n\n

      To stop Nginx web server, type:<\/p>\n\n\n\n

      $ sudo systemctl stop nginx<\/code><\/pre>\n\n\n\n

      To start the Nginx web server when it is stopped, type:<\/p>\n\n\n\n

      $ sudo systemctl start nginx<\/code><\/pre>\n\n\n\n

      To stop and start the Nginx service in a single step, type:<\/p>\n\n\n\n

      $ sudo systemctl restart nginx<\/code><\/pre>\n\n\n\n

      When you make changes to the configuration files you can type this command to reload the new configuration changes:<\/p>\n\n\n\n

      $ sudo systemctl reload nginx<\/code><\/pre>\n\n\n\n

      To stop Nginx from automatically starting on system boot then run this command:<\/p>\n\n\n\n

      $ sudo systemctl disable nginx<\/code><\/pre>\n\n\n\n

      You can re-enable the service to start up at boot by typing:<\/p>\n\n\n\n

      $ sudo systemctl enable nginx<\/code><\/pre>\n\n\n\n

      Conclusion<\/h2>\n\n\n\n

      In this tutorial, you have learned how to install Nginx on ubuntu 22.04, how to allow connections to it through the firewall, and how to set up your first website. There is more that is needed to set up more practical websites and applications including those that access databases, third-party web services, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"

      Before we show you how to install Nginx on Ubuntu 22.04, we need to give you a bit of background. Nginx, created and released by Igor Sysoev back in 2004,…<\/p>\n","protected":false},"author":1,"featured_media":12592,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,28,16,18],"tags":[354,400,424,433,449,591,598,635,636,638],"yoast_head":"\nHow to Install Nginx on Ubuntu 22.04 Linux Systems<\/title>\n<meta name=\"description\" content=\"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\" \/>\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 22.04 Linux Systems\" \/>\n<meta property=\"og:description\" content=\"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-11T11:26:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-11T11:30:19+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\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\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Install Nginx on Ubuntu 22.04 and Create First Site\",\"datePublished\":\"2022-09-11T11:26:33+00:00\",\"dateModified\":\"2022-09-11T11:30:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\"},\"wordCount\":1032,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg\",\"keywords\":[\"Linux\",\"Nginx\",\"Open Source\",\"Optimization\",\"Performance\",\"Tools\",\"Ubuntu\",\"Web\",\"Web Applications\",\"Web Development\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Software\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\",\"url\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\",\"name\":\"How to Install Nginx on Ubuntu 22.04 Linux Systems\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg\",\"datePublished\":\"2022-09-11T11:26:33+00:00\",\"dateModified\":\"2022-09-11T11:30:19+00:00\",\"description\":\"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Install Nginx on Ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Nginx on Ubuntu 22.04 and Create First Site\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/x.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Nginx on Ubuntu 22.04 Linux Systems","description":"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website","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":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Nginx on Ubuntu 22.04 Linux Systems","og_description":"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website","og_url":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2022-09-11T11:26:33+00:00","article_modified_time":"2022-09-11T11:30:19+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Install Nginx on Ubuntu 22.04 and Create First Site","datePublished":"2022-09-11T11:26:33+00:00","dateModified":"2022-09-11T11:30:19+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/"},"wordCount":1032,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg","keywords":["Linux","Nginx","Open Source","Optimization","Performance","Tools","Ubuntu","Web","Web Applications","Web Development"],"articleSection":["Articles","Guides","How To","Software","Technology","Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/","url":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/","name":"How to Install Nginx on Ubuntu 22.04 Linux Systems","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg","datePublished":"2022-09-11T11:26:33+00:00","dateModified":"2022-09-11T11:30:19+00:00","description":"This tutorial explains how to install Nginx on Ubuntu 22.04 with examples on setting up ufw firewall and setting up a simple website","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/09\/how-to-install-nginx-on-ubuntu-22-04.jpg","width":1280,"height":680,"caption":"Install Nginx on Ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/how-to-install-nginx-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Install Nginx on Ubuntu 22.04 and Create First Site"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/x.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12591"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=12591"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12591\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/12592"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=12591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=12591"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=12591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}