{"id":410,"date":"2015-03-20T17:20:50","date_gmt":"2015-03-20T17:20:50","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=410"},"modified":"2015-03-20T17:20:50","modified_gmt":"2015-03-20T17:20:50","slug":"common-apache-nginx-commands","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/common-apache-nginx-commands\/","title":{"rendered":"Common Apache Nginx commands"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-411 size-full\" src=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/03\/apachenginx.png\" alt=\"apachenginx\" width=\"1520\" height=\"466\" \/><br \/>\nAssuming that you have installed it in a Linux flavour using default aptitude get, you can use the configurations and commands below. I use the tool &#8220;nano&#8221; as an example. I suggest using &#8220;vim&#8221;. You can do that by replacing nano with vim. To exit vim, (if you are stuck), just hit esc key once (looks like nothing happened. its normal), and type &#8220;:q &lt;enter&gt;&#8221;.<br \/>\nChange Apache 2.0 configuration<\/p>\n<blockquote><p>nano \/etc\/apache2\/httpd.conf<br \/>\nsudo \/usr\/sbin\/apachectl restart<\/p><\/blockquote>\n<p>Restart Apache 2.0<\/p>\n<blockquote><p>sudo \/usr\/sbin\/apachectl restart<\/p><\/blockquote>\n<p>Change Nginx Configuration<\/p>\n<blockquote><p>nano \/etc\/nginx\/nginx.conf<br \/>\nsudo service nginx restart<\/p><\/blockquote>\n<p>Restart Nginx<\/p>\n<blockquote><p>service nginx restart<\/p><\/blockquote>\n<p>Test Nginx Configuration<\/p>\n<blockquote><p>nginx -t<\/p><\/blockquote>\n<p><strong>Reference<\/strong><br \/>\n&#8211; http:\/\/httpd.apache.org\/docs\/2.4\/programs\/apachectl.html<br \/>\n&#8211;\u00a0http:\/\/www.coolestguidesontheplanet.com\/downtown\/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assuming that you have installed it in a Linux flavour using default aptitude get, you can use the configurations and commands below. I use the tool &#8220;nano&#8221; as an example. I suggest using &#8220;vim&#8221;. You can do that by replacing nano with vim. To exit vim, (if you are stuck), just hit esc key once [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}