{"id":18976,"date":"2015-07-20T16:56:19","date_gmt":"2015-07-20T11:26:19","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=18976"},"modified":"2024-01-02T17:48:49","modified_gmt":"2024-01-02T12:18:49","slug":"changing-the-port-of-a-running-aem-instance","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/changing-the-port-of-a-running-aem-instance\/","title":{"rendered":"Changing the Port of a Running AEM Instance"},"content":{"rendered":"<p>AEM derives the port number from the quickstart jar file. As the <a href=\"https:\/\/docs.adobe.com\/docs\/en\/aem\/6-0\/deploy\/custom-standalone-install.html\" target=\"_blank\" rel=\"noopener\">documentation<\/a>\u00a0says that by renaming the jar file, <a title=\"AEM Development Services\" href=\"http:\/\/www.tothenew.com\/wcm\/cq-aem-development-consulting\">we can configure AEM<\/a> to run on a different port.<\/p>\n<p>But this requires an instance shutdown. What if we want to change the port number of a running AEM instance? What if it is an\u00a0<b>e-Commerce\u00a0<\/b>site and shutting down the server means the loss\u00a0of customers which implies the loss of business? This blog post will talk about how to change the port of a running AEM instance.<\/p>\n<p><strong>Use case:<\/strong><\/p>\n<p>In a production AEM environment, we access the AEM instance through a web server, typically Apache Web Server. Dispatcher module that sits on Apache\u00a0communicates to the AEM server. An end-user is oblivious to the fact that an AEM server even exists? But if there is a vulnerability in your application which could be exploited through the port it is running on, then a potential hacker can take advantage of it and cause serious security problems by reaching the server through that port.It is always recommended that we should change the default port. Though, it is hidden that which port the AEM server is running on but what if a hacker gets that information? A production system\u00a0needs to change the\u00a0port\u00a0in that case. Changing the port in the usual way requires downtime. And Downtime can have serious impacts.<\/p>\n<p><strong>Resolution:\u00a0<\/strong><\/p>\n<p>With AEM 6 onwards, we can change the port of a running AEM instance. Go to Felix Console\u00a0and search for\u00a0<strong>Apache Felix Jetty Based Http Service.\u00a0<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-68 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/01\/jetty-service2.png\" alt=\"jetty-service\" width=\"800\" height=\"408\" \/><\/p>\n<p>Change the default value of HTTP Port (highlighted above) with the new port number and hit <strong>Save<\/strong>. As soon as you save the configuration, the AEM will start running on the new port. To verify if the configuration works, reload the page. It will not open up. Now, open the same page with the new port specified in the above configuration. You will see that the AEM is running on the new port.<\/p>\n<p>Hope it helps !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AEM derives the port number from the quickstart jar file. As the documentation\u00a0says that by renaming the jar file, we can configure AEM to run on a different port. But this requires an instance shutdown. What if we want to change the port number of a running AEM instance? What if it is an\u00a0e-Commerce\u00a0site and [&hellip;]<\/p>\n","protected":false},"author":110,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":106},"categories":[1],"tags":[1235,4847,1813,1581,1207,4850],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18976"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=18976"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18976\/revisions"}],"predecessor-version":[{"id":59894,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18976\/revisions\/59894"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=18976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=18976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=18976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}