{"id":40639,"date":"2022-04-27T12:30:00","date_gmt":"2022-04-27T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=40639"},"modified":"2022-10-05T06:27:40","modified_gmt":"2022-10-05T11:27:40","slug":"how-to-fix-common-nginx-web-server-errors","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/","title":{"rendered":"How to Fix Common Nginx Web Server Errors"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-40694\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg\" alt=\"how to fix common nginx web server errors\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this blog post, we are going to explain the most common <a href=\"https:\/\/www.rosehosting.com\/nginx-hosting\/\">Nginx web server<\/a> errors and will try to give you a simple solution for every possible issue.<\/p>\r\n\r\n\r\n\r\n<p>Nginx is a web server that can be used as a multifunction tool such as reverse proxy, load balancing, caching, and more. Nginx is free and open-source and its popularity day by day is increasing rapidly. Nginx used as an HTTP proxy, can handle more than 10 thousand simultaneous connections at once. In the next few paragraphs will be explained the five most common Nginx web server errors with possible solutions. Let&#8217;s get to work!<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 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-69dfd445d3607\" 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-69dfd445d3607\"  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\/how-to-fix-common-nginx-web-server-errors\/#Prerequisites\" >Prerequisites<\/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\/how-to-fix-common-nginx-web-server-errors\/#Update-the-System\" >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\/how-to-fix-common-nginx-web-server-errors\/#Install-Nginx-Web-Server\" >Install Nginx Web Server<\/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\/how-to-fix-common-nginx-web-server-errors\/#Address-family-not-supported-by-protocol\" >Address family not supported by protocol<\/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\/how-to-fix-common-nginx-web-server-errors\/#Default-Nginx-Page\" >Default Nginx Page<\/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\/how-to-fix-common-nginx-web-server-errors\/#403-Forbidden\" >403 Forbidden<\/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\/how-to-fix-common-nginx-web-server-errors\/#404-Not-Found\" >404 Not Found<\/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\/how-to-fix-common-nginx-web-server-errors\/#500-Internal-Server-Error\" >500 Internal Server Error<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Fresh install of Ubuntu 20.04, CentOS, AlmaLinux or Debian OS<\/li>\r\n<li>User privileges: root or non-root user with sudo privileges<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update-the-System\"><\/span>Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>It is always recommended before we do anything on our server, to update the packages to their latest versions available.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install-Nginx-Web-Server\"><\/span>Install Nginx Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Before we start with explaining the Nginx web server errors we are going to install it with the command below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt install nginx -y<\/pre>\r\n\r\n\r\n\r\n<p>Once, Nginx is installed start it and enable it with the commands below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl start nginx &amp;&amp; sudo systemctl enable nginx<\/pre>\r\n\r\n\r\n\r\n<p>To check the status of the Nginx service, execute the following line:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl status nginx<\/pre>\r\n\r\n\r\n\r\n<p>You should receive the following output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">root@vps:~# sudo systemctl status nginx\r\n\u25cf nginx.service - A high performance web server and a reverse proxy server\r\n     Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Fri 2022-03-18 18:28:46 UTC; 2min 30s ago\r\n       Docs: man:nginx(8)\r\n   Main PID: 60832 (nginx)\r\n      Tasks: 5 (limit: 4617)\r\n     Memory: 5.1M\r\n     CGroup: \/system.slice\/nginx.service\r\n             \u251c\u250060832 nginx: master process \/usr\/sbin\/nginx -g daemon on; master_process on;<\/pre>\r\n\r\n\r\n\r\n<p>That was for the installation process. Now in the next few paragraphs, we are going to dig deeper into the most common Nginx web server errors. Let&#8217;s get started.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Address-family-not-supported-by-protocol\"><\/span><b>Address family not supported by protocol<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>This issue is occurring after a fresh installation of Nginx, after starting the nginx.service. The full error is given below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"> Mar 18 19:17:18 nginx.vps nginx[62558]: nginx: [emerg] <b>socket() [::]:80 failed (97: Address family not supported by protocol)<\/b>\r\nMar 18 19:17:18 nginx.vps nginx[62558]: nginx: <b>configuration file \/etc\/nginx\/nginx.conf test failed<\/b>\r\n<\/pre>\r\n\r\n\r\n\r\n<p>It clearly says that there is some problem with the listening address and the Nginx configuration test is failing. To solve this issue and to be able to start the nginx.service first open the nginx default configuration file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/sites-available\/default<\/pre>\r\n\r\n\r\n\r\n<p>Find these lines of code and comment the line as described below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">server {\r\n        listen 80 default_server;\r\n        #listen [::]:80 default_server;\r\n<\/pre>\r\n\r\n\r\n\r\n<p>Save the file, close it and start the nginx service.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Default-Nginx-Page\"><\/span><b>Default Nginx Page<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"627\" height=\"252\" class=\"wp-image-40724\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-web-server-errors.webp\" alt=\"\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-web-server-errors.webp 627w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-web-server-errors-300x121.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-web-server-errors-150x60.webp 150w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/figure>\r\n\r\n<p>If you see this page on a fresh installation of Nginx, it can not be threatened as an issue, since it is normal. But if you set up a virtual host file then obviously there is some mistake.<\/p>\r\n<p>First try to set up a symbolic link<\/p>\r\n<pre>sudo ln -s \/etc\/nginx\/sites-available\/websitename \/etc\/nginx\/sites-enabled<\/pre>\r\n<p>Then, you need to check the nginx configuration syntax<\/p>\r\n<pre>nginx -t<\/pre>\r\n<p>You should receive the following output:<\/p>\r\n<pre>root@vps:~# nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/pre>\r\n<p>After this you need to restart the nginx.service for the changes to take the effectivity.<\/p>\r\n<pre>sudo systemctl restart nginx<\/pre>\r\n<h2><span class=\"ez-toc-section\" id=\"403-Forbidden\"><\/span><b>403 Forbidden<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"512\" height=\"213\" class=\"wp-image-40726\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-errors.webp\" alt=\"\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-errors.webp 512w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-errors-300x125.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-common-nginx-errors-150x62.webp 150w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\r\n\r\n<p>This issue is related to the access of the requested resource. It means that the resource is not accessible and there may be multiple reasons for that. One of the reasons may be the permissions of the document root of the website. The second reason may be the rules in the Nginx configuration file, and the third reason is the blocked IP address. These are the possible solutions:<\/p>\r\n<p>Set the right permission of the document root:<\/p>\r\n<pre>chmod 755 \/var\/www\/html\/<\/pre>\r\n<p>Unblock the IP address of the client who is trying to access the website with the Iptables method:<\/p>\r\n<pre>iptables -A INPUT -s <b>IP_ADDRESS<\/b> -j ACCEPT<\/pre>\r\n<p>Unblock the IP address of the client who is trying to access the website If there is CSF installed on the server:<\/p>\r\n<pre>csf -a <b>IP_ADDRESS<\/b><\/pre>\r\n<h2><span class=\"ez-toc-section\" id=\"404-Not-Found\"><\/span><b>404 Not Found<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"526\" height=\"272\" class=\"wp-image-40727\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-web-server-errors.webp\" alt=\"\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-web-server-errors.webp 526w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-web-server-errors-300x155.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-web-server-errors-150x78.webp 150w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/figure>\r\n\r\n<p>The 404 Not Found message tells us that the document root of the website can not be found although the visitor&#8217;s web browser is connected successfully to our server. To solve this issue you have to open the Nginx configuration file of the website and double-check the document root.<\/p>\r\n<p>If the name of the document root is the one you want then, you need to check if the document root directory exists as is defined in the configuration file. If these two conditions are true then, the last step is to check the <b>index.html<\/b> or <b>index.php<\/b> files, if they are in the correct location of the document root.<\/p>\r\n<p>If the application is PHP-based then it is good to check if the PHP-FPM service is up and running.The second step is to open the NGINX configuration file and check if these lines of code exist:<\/p>\r\n<pre>location \/ {\r\n                try_files $uri $uri\/ \/index.php?$args;\r\n        }\r\n        location ~ \\.php$ {\r\n                include snippets\/fastcgi-php.conf;\r\n                fastcgi_pass unix:\/run\/php\/php7.4-fpm.sock;\r\n                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        }<\/pre>\r\n<p>These lines of code defines the <b>PHP-FPM<\/b> socket and <b>try_files<\/b> that allow us to configure URI location and how Nginx serves various files based on the request received.<\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"500-Internal-Server-Error\"><\/span><b>500 Internal Server Error<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"168\" class=\"wp-image-40728\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-errors.webp\" alt=\"\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-errors.webp 575w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-errors-300x88.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/fix-nginx-errors-150x44.webp 150w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure>\r\n\r\n<p>This issue is related to the server-side that prevents NGINX to return a proper response. There are many reasons for this issue such as failed <b>MySQL<\/b> service, failed <b>PHP-FPM<\/b> service, or in the meantime, the whole server is restarted. To solve this issue you can try the following steps:<\/p>\r\n<ul>\r\n<li>Clear the web browser cache, with CTRL+F5.<\/li>\r\n<li>Check the NGINX web server logs<\/li>\r\n<li>Check the redirect rules, in the NGINX confuguratuon of the website.<\/li>\r\n<li>Set the right file and folder permissions<\/li>\r\n<li>Increase the webserver script timeout to be connected longer with NGINX<\/li>\r\n<\/ul>\r\n<p>In this tutorial you learned How to Fix the Common Nginx Web Server Errors in multiple steps. If you are not able to fix some issues, do not hesitate to contact our amazing support. All you have to do is to sign up for our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/\">NVMe VPS plans<\/a> and submit a support ticket. We are available 24\/7.<\/p>\r\n<p>PS. If you liked this post, on How to Fix Common Nginx Web Server Errors, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\r\n<p><strong>See Related:<\/strong><\/p>\r\n<ul>\r\n<li class=\"entry-title\"><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-secure-nginx-with-lets-encrypt-on-ubuntu-20-04\/\">How To Secure Nginx with Let\u2019s Encrypt on Ubuntu 20.04<\/a><\/li>\r\n<li class=\"entry-title\"><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-deploy-flask-application-with-nginx-and-gunicorn-on-ubuntu-20-04\/\">How to Deploy Flask Application with Nginx and Gunicorn on Ubuntu 20.04<\/a><\/li>\r\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>In this blog post, we are going to explain the most common Nginx web server errors and will try to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Fix Common Nginx Web Server Errors\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#more-40639\" aria-label=\"Read more about How to Fix Common Nginx Web Server Errors\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":40694,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1707],"tags":[1691,49,185],"class_list":["post-40639","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-web-servers","tag-error","tag-nginx","tag-web-server","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Fix Common Nginx Web Server Errors | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Fix Common Nginx Web Server Errors | 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\/how-to-fix-common-nginx-web-server-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix Common Nginx Web Server Errors\" \/>\n<meta property=\"og:description\" content=\"How to Fix Common Nginx Web Server Errors | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/\" \/>\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=\"2022-04-27T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-05T11:27:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg?v=1648050522\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Fix Common Nginx Web Server Errors\",\"datePublished\":\"2022-04-27T17:30:00+00:00\",\"dateModified\":\"2022-10-05T11:27:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/\"},\"wordCount\":907,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/how-to-fix-common-nginx-web-server-errors.jpg\",\"keywords\":[\"error\",\"nginx\",\"web server\"],\"articleSection\":[\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/\",\"name\":\"How to Fix Common Nginx Web Server Errors | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/how-to-fix-common-nginx-web-server-errors.jpg\",\"datePublished\":\"2022-04-27T17:30:00+00:00\",\"dateModified\":\"2022-10-05T11:27:40+00:00\",\"description\":\"How to Fix Common Nginx Web Server Errors | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/how-to-fix-common-nginx-web-server-errors.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/how-to-fix-common-nginx-web-server-errors.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to fix common nginx web server errors\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-common-nginx-web-server-errors\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix Common Nginx Web Server Errors\"}]},{\"@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":"How to Fix Common Nginx Web Server Errors | RoseHosting","description":"How to Fix Common Nginx Web Server Errors | 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\/how-to-fix-common-nginx-web-server-errors\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix Common Nginx Web Server Errors","og_description":"How to Fix Common Nginx Web Server Errors | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-04-27T17:30:00+00:00","article_modified_time":"2022-10-05T11:27:40+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg?v=1648050522","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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Fix Common Nginx Web Server Errors","datePublished":"2022-04-27T17:30:00+00:00","dateModified":"2022-10-05T11:27:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/"},"wordCount":907,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg","keywords":["error","nginx","web server"],"articleSection":["Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/","name":"How to Fix Common Nginx Web Server Errors | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg","datePublished":"2022-04-27T17:30:00+00:00","dateModified":"2022-10-05T11:27:40+00:00","description":"How to Fix Common Nginx Web Server Errors | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/how-to-fix-common-nginx-web-server-errors.jpg","width":742,"height":372,"caption":"how to fix common nginx web server errors"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-common-nginx-web-server-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix Common Nginx Web Server Errors"}]},{"@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\/40639","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=40639"}],"version-history":[{"count":13,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40639\/revisions"}],"predecessor-version":[{"id":43305,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/40639\/revisions\/43305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/40694"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=40639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=40639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=40639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}