{"id":2550,"date":"2018-09-30T10:23:41","date_gmt":"2018-09-30T04:53:41","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=2550"},"modified":"2018-10-12T15:52:04","modified_gmt":"2018-10-12T10:22:04","slug":"how-to-change-ngnix-config-setup-to-another-port-8080-in-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/","title":{"rendered":"How to change Ngnix config setup to another port 8080 in Linux."},"content":{"rendered":"<h3>How to change Ngnix config setup to another port 8080 in Linux.<\/h3>\n<h4>Date posted:\u00a0 \u00a028 \/09\/2018<\/h4>\n<p>In this article , we learn about how to change Ngnix port in Linux.<\/p>\n<p><strong>Nginx<\/strong>\u00a0is an open source server having high traffic websites in internet today. Among\u00a0 all the web services, Nginx web server can be act as a good web reverse proxy or as a POP and IMAP proxy server.<\/p>\n<p>By default,\u00a0<strong>Nginx HTTP<\/strong>\u00a0server listens for incoming connection and binds on port\u00a0<strong>80<\/strong>, which represents the standard web port.In order to make Nginx\u00a0 server to listen for incoming connections on another port such as <strong>8080.<\/strong><\/p>\n<p><strong>Importance of port 8080:<\/strong><\/p>\n<ul>\n<li>8080 port is used to host an alternate web server and it act as a proxy and caching port.<\/li>\n<li>It is a popular alternate port to 80 port. It used to convey HTTP\u00a0 traffic.<\/li>\n<li>Here , we have to change the listen port from 80 to 8080.<\/li>\n<\/ul>\n<p>Step by step procedure to implement in our Linux Environment, are as follows:<\/p>\n<p>If you are\u00a0 already using Apache HTTP server as a default one , it automatically listens to a port 80 as default standard\u00a0 web port.So that we have to launch a Nginx web server in a\u00a0 another port 8080.<\/p>\n<p><strong>Step 1<\/strong>:\u00a0Adding a Nginx repository.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># sudo yum install epel-release<\/pre>\n<p><strong>Step 2<\/strong>: To install nginix repository, in our server.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># sudo yum install nginx<\/pre>\n<p><strong>Step 3<\/strong>:\u00a0<strong>:<\/strong> To Start Nginx.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># sudo systemctl start ngnix\r\nFailed to start nginix.service: unit not found.<\/pre>\n<p>Nginix setup will not get started as default\u00a0 apache webserver is running on our server.So that we have to edit the nginx.config file.<\/p>\n<p><strong>Step 4<\/strong>: Modify the main configuration File :<\/p>\n<ul>\n<li>In\u00a0\u00a0<strong>RHEL\u00a0<\/strong>and\u00a0<strong>CentOS<\/strong>\u00a0based distributions edit\u00a0<strong>\/etc\/nginx\/nginx.conf<\/strong>\u00a0file.<\/li>\n<li>In\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Debian<\/strong>\u00a0based system, we need to modify the\u00a0<strong>\/etc\/nginx\/sites-enabled\/default<\/strong>\u00a0file.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># nano \/etc\/nginx\/sites-enabled\/default \r\n# nano \/etc\/nginx\/nginx.conf<\/pre>\n<p>To configure Nginx HTTP server to listen for incoming connections on port<strong>\u00a0 8080<\/strong>. Search for the line that begins with <strong>Listen<\/strong> statement in server config file directory\u00a0 and change the port from\u00a0<strong>80<\/strong>\u00a0to<strong> 8080<\/strong>,<\/p>\n<p>Inside the\u00a0<strong># nano \/etc\/nginx\/nginx.conf\u00a0 file\u00a0<\/strong>, the <strong>apache server will automatically listens to the 80 port as the default_server<\/strong> as shown in below figure as follows,<\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2565\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png\" alt=\"\" width=\"468\" height=\"32\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/nanoboy.png 718w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/nanoboy-300x20.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/server-80.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2563\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/server-80.png\" alt=\"\" width=\"473\" height=\"316\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/server-80.png 374w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/server-80-300x200.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/server-80-272x182.png 272w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/a><\/p>\n<p>In to the\u00a0<strong># nano \/etc\/nginx\/nginx.conf\u00a0 file\u00a0<\/strong>, the config file has to edit\u00a0 <strong>listen\u00a0<\/strong> <strong>8080 port as the default_server<\/strong> as shown in below figure as follows,<\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2565\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png\" alt=\"\" width=\"483\" height=\"33\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/nanoboy.png 718w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/nanoboy-300x20.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/8080.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2568\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/8080.png\" alt=\"\" width=\"488\" height=\"94\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/8080.png 540w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/8080-300x58.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p><strong>Step 5:<\/strong><\/p>\n<p>After altering Listening nginx port, Restart the nginx web server to bind in our\u00a0 Linux environment.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># Sudo systemctl restart nginx \r\n<\/pre>\n<p><strong>Step 6:<\/strong><\/p>\n<p>Verify the\u00a0 network sockets table with <strong>netstat\u00a0 and ss\u00a0 command<\/strong>. Port <strong>8080<\/strong> should be displayed in your server local network table.<\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/netstat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2569\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/netstat.png\" alt=\"\" width=\"887\" height=\"131\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/netstat.png 887w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/netstat-300x44.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/netstat-768x113.png 768w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/a> <a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/ss-baby.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2570\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/ss-baby.png\" alt=\"\" width=\"633\" height=\"131\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/ss-baby.png 633w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/ss-baby-300x62.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p><strong>Step 7:<\/strong><\/p>\n<p>Add the rules required by SElinux for nginx to bind on the new port.<\/p>\n<p>Security-Enhanced Linux (<b>SELinux<\/b>) is a Linux kernel security module that provides control security policies, including United States Department of Defense\u2013style <strong>mandatory access controls (MAC).<\/strong><\/p>\n<p><strong>SELinux has to be enabled (Enforcing) , if it is disabled.<\/strong><\/p>\n<p>This entry can contain one of three values:<\/p>\n<p><strong>Enforcing:<\/strong><\/p>\n<p>SELinux security policy is enforced.<\/p>\n<p><strong>Permissive:<\/strong><\/p>\n<p>SELinux logs warnings instead of enforcing the policy (i.e. the action is allowed to proceed).<\/p>\n<p><strong>Disabled:<\/strong><\/p>\n<p>No SELinux policy is loaded.<\/p>\n<p>Note that this configures the global SELinux enforcement mode. It is still possible to have domains running in permissive mode and\/or object managers running as disabled, permissive or enforcing, when the global mode is enforcing or permissive.<\/p>\n<p><strong>To alter the enforce, permissive and disable by using this config files.<\/strong><\/p>\n<p>Edit the config file <strong>\/etc\/selinux\/config\u00a0\u00a0<\/strong>file to change the\u00a0 status to disabled\u00a0 SElinux to enable(Enforcing) Mode.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># sudo nano \/etc\/selinux\/config<\/pre>\n<p>Then, inside the <strong>\/etc\/selinux\/config<\/strong> file change the status disabled to enable.<\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/enforce.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2572\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/enforce.png\" alt=\"\" width=\"439\" height=\"158\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/enforce.png 439w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/enforce-300x108.png 300w\" sizes=\"auto, (max-width: 439px) 100vw, 439px\" \/><\/a><\/p>\n<p>As you can see in the image above, the orange marked section says\u00a0<strong>SELinux status<\/strong>\u00a0is\u00a0<strong>enabled<\/strong>. The green marked section says that the\u00a0<strong>Current mode<\/strong>\u00a0is\u00a0<strong>enforcing<\/strong>. once it is changed, Reboot it using reboot command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># reboot<\/pre>\n<p>Then check the status , Whether the alteration in SELinux from Disabled to Enabled from using<strong> sestatus<\/strong> command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># sestatus<\/pre>\n<p>This command will show the status of the SELinux . Now it is in Enabled enforced mode.<\/p>\n<p><strong>Step 8:\u00a0<\/strong><\/p>\n<p>After the SELinux\u00a0 is Enabled , Install a <strong>policycoreutils<\/strong> package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># yum install policycoreutils<\/pre>\n<p>To\u00a0 bind the SElinux for nginx in\u00a0 new port 8080, thus install a <strong>semanage<\/strong> package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># yum provides \/usr\/sbin\/semanage<\/pre>\n<p>Once the Semanage package is installed , thus use this to add TCP to port with 8080. using this command and address it.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># semanage port -a -t http_port_t -p tcp 8080\r\n# semanage port -m -t http_port_t -p tcp 8080\r\n<\/pre>\n<p><strong>Step 9:<\/strong><\/p>\n<p><strong>Finally restart the service. And check the status in the network table.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># systemctl restart nginx.service \r\n# netstat -tlpn| grep nginx\r\n# ss -tlpn| grep nginx\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/ss-baby.png\" \/><\/p>\n<p><strong>Step 10:<\/strong><\/p>\n<p>ping the server .ip address of your\u00a0 local machine with\u00a0 port 8080.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">http:\/\/sever.ip:8080<\/pre>\n<p>http:\/\/10.1.1.1:8080<\/p>\n<p><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/ngnix.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2574\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/ngnix.png\" alt=\"\" width=\"931\" height=\"365\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/ngnix.png 931w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/ngnix-300x118.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/09\/ngnix-768x301.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>We successfully configured nginx setup on a alternate port 8080.For more information related\u00a0 to this update, leave the comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to change Ngnix config setup to another port 8080 in Linux. Date posted:\u00a0 \u00a028 \/09\/2018 In this article , we learn about how to change Ngnix port in Linux. Nginx\u00a0is an open source server having high traffic websites in internet today. Among\u00a0 all the web services, Nginx web server&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">How to change Ngnix config setup to another port 8080 in Linux.<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[284,298,1],"tags":[420,271,424],"class_list":{"0":"post-2550","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-centos","7":"category-nginx","8":"category-uncategorized","9":"tag-change-ngnix-port-in-linux","10":"tag-nginx","11":"tag-port-8080","12":"h-entry","14":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"How to change Ngnix config setup to another port 8080 in Linux. Date posted:\u00a0 \u00a028 \/09\/2018 In this article , we learn about how to change Ngnix port in Linux. Nginx\u00a0is an open source server having high traffic websites in internet today. Among\u00a0 all the web services, Nginx web server&hellip; Continue Reading How to change Ngnix config setup to another port 8080 in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-30T04:53:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-12T10:22:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"How to change Ngnix config setup to another port 8080 in Linux.\",\"datePublished\":\"2018-09-30T04:53:41+00:00\",\"dateModified\":\"2018-10-12T10:22:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/\"},\"wordCount\":737,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/nanoboy.png\",\"keywords\":[\"change ngnix port in Linux\",\"Nginx\",\"port 8080\"],\"articleSection\":[\"Centos\",\"Nginx\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/nanoboy.png\",\"datePublished\":\"2018-09-30T04:53:41+00:00\",\"dateModified\":\"2018-10-12T10:22:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/nanoboy.png\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/nanoboy.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change Ngnix config setup to another port 8080 in Linux.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"How to change Ngnix config setup to another port 8080 in Linux. Date posted:\u00a0 \u00a028 \/09\/2018 In this article , we learn about how to change Ngnix port in Linux. Nginx\u00a0is an open source server having high traffic websites in internet today. Among\u00a0 all the web services, Nginx web server&hellip; Continue Reading How to change Ngnix config setup to another port 8080 in Linux.","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2018-09-30T04:53:41+00:00","article_modified_time":"2018-10-12T10:22:04+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"How to change Ngnix config setup to another port 8080 in Linux.","datePublished":"2018-09-30T04:53:41+00:00","dateModified":"2018-10-12T10:22:04+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/"},"wordCount":737,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png","keywords":["change ngnix port in Linux","Nginx","port 8080"],"articleSection":["Centos","Nginx"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png","datePublished":"2018-09-30T04:53:41+00:00","dateModified":"2018-10-12T10:22:04+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/09\/nanoboy.png"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-change-ngnix-config-setup-to-another-port-8080-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to change Ngnix config setup to another port 8080 in Linux."}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-F8","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2550"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2550\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}