<input type="hidden" id="_wpnonce" name="_wpnonce" value="41c53f01ae" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/28170" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="41c53f01ae" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/28170" />{"id":28170,"date":"2019-12-07T09:31:05","date_gmt":"2019-12-06T22:31:05","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=28170"},"modified":"2019-12-08T21:41:41","modified_gmt":"2019-12-08T10:41:41","slug":"how-to-fix-error-99-cannot-assign-requested-address-nginx","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2019\/12\/07\/how-to-fix-error-99-cannot-assign-requested-address-nginx\/","title":{"rendered":"HOW TO FIX ERROR 99 CANNOT ASSIGN REQUESTED ADDRESS NGINX"},"content":{"rendered":"<!--CusAds0--><p>I recently received this error message when I manually started my VestaCP Nginx service:<\/p>\n<blockquote><p>99: Cannot assign requested address nginx: configuration file \/etc\/nginx\/nginx.conf test failed<\/p><\/blockquote>\n<p>I tried searching for a solution on Google but none of them helped. After some digging around, I managed to work out what the issue was. A few weeks ago the hosting provider changed the IP address of the VPS. I ended up changing the VestaCP IP address and also all the websites IP addresses. What I didn&#8217;t change was the IP address in the nginx config file (who would have thought to do that?).<\/p>\n<p>The file that needed to be changed was\u00a0\/home\/admin\/conf\/web\/nginx.conf<\/p><!--CusAds0-->\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-28178\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2019\/12\/Business-Legions-HOW-TO-FIX-ERROR-99-CANNOT-ASSIGN-REQUESTED-ADDRESS-NGINX.png?strip=all\" alt=\"Business Legions - HOW TO FIX ERROR 99 CANNOT ASSIGN REQUESTED ADDRESS NGINX\" width=\"261\" height=\"85\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2019\/12\/Business-Legions-HOW-TO-FIX-ERROR-99-CANNOT-ASSIGN-REQUESTED-ADDRESS-NGINX.png?strip=all 261w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2019\/12\/Business-Legions-HOW-TO-FIX-ERROR-99-CANNOT-ASSIGN-REQUESTED-ADDRESS-NGINX-178x58.png?strip=all 178w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2019\/12\/Business-Legions-HOW-TO-FIX-ERROR-99-CANNOT-ASSIGN-REQUESTED-ADDRESS-NGINX.png?strip=all&amp;w=52 52w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2019\/12\/Business-Legions-HOW-TO-FIX-ERROR-99-CANNOT-ASSIGN-REQUESTED-ADDRESS-NGINX.png?strip=all&amp;w=104 104w\" sizes=\"(max-width: 261px) 100vw, 261px\" \/><\/p>\n<p>server {<br \/>\nlisten xx.xx.xx.xx:80;<br \/>\nserver_name &#8220;&#8221;;<br \/>\nreturn 444;<br \/>\n}<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I recently received this error message when I manually started my VestaCP Nginx service: 99: Cannot assign requested address nginx: configuration file \/etc\/nginx\/nginx.conf test failed I tried searching for a solution on Google but none of them helped. After some digging around, I managed to work out what the issue was. A few weeks ago [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":28180,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,1691,1043],"tags":[426,1624,1713,1989,1968,94],"class_list":["post-28170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business","category-technology","category-tip-and-tricks","category-websites","tag-error","tag-fix","tag-how-to","tag-nginx","tag-vestacp","tag-website"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/28170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=28170"}],"version-history":[{"count":2,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/28170\/revisions"}],"predecessor-version":[{"id":28179,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/28170\/revisions\/28179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/28180"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=28170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=28170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=28170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}