{"id":2600,"date":"2022-03-04T21:19:31","date_gmt":"2022-03-05T03:19:31","guid":{"rendered":"https:\/\/promincproductions.com\/blog\/?p=2600"},"modified":"2022-03-04T21:19:34","modified_gmt":"2022-03-05T03:19:34","slug":"xampp-change-port-for-http-requests-with-apache","status":"publish","type":"post","link":"https:\/\/promincproductions.com\/blog\/xampp-change-port-for-http-requests-with-apache\/","title":{"rendered":"XAMPP Change Port for HTTP Requests with Apache"},"content":{"rendered":"<p>XAMPP uses the standard ports of 80 and 443 for HTTP and HTTPS traffic.  These ports can be changed through a few configuration file changes.<\/p>\n\n\n\n<p>Typically XAMPP traffic is used just through HTTP and thus there may not be a need to change the HTTPS settings.  But this tutorial will show how to change both.<\/p>\n\n\n\n<p>For the sake of this tutorial, the default port of <code>80<\/code> will be changed to <code>8080<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th><\/th><th>HTTP<\/th><th>HTTPS<\/th><\/tr><\/thead><tbody><tr><td>Default Values<\/td><td>80<\/td><td>443<\/td><\/tr><tr><td>Changed Values for Tutorial<\/td><td>8080<\/td><td>444<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port.png\" alt=\"How to change the HTTP and HTTPS port in XAMPP for Apache\" class=\"wp-image-2609\" width=\"421\" height=\"421\" title=\"How to change the HTTP and HTTPS port in XAMPP for Apache\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port-500x500.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port-150x150.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port-450x450.png 450w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">XAMPP Configuration<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Open XAMPP<\/li><li>In the XAMPP Control Panel, click the <strong>Config<\/strong> button in the top right corner<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21.png\" alt=\"Click the Config button in the XAMPP Control Panel\" class=\"wp-image-2602\" width=\"531\" height=\"345\" title=\"Click the Config button in the XAMPP Control Panel\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21.png 834w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21-500x325.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21-768x499.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21-150x97.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21-600x390.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-21-450x292.png 450w\" sizes=\"(max-width: 531px) 100vw, 531px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Click the <strong>Service and Port Settings<\/strong> button.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-22.png\" alt=\"Click the Service and Port Settings button\" class=\"wp-image-2603\" width=\"471\" height=\"503\" title=\"Click the Service and Port Settings button\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-22.png 562w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-22-468x500.png 468w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-22-150x160.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-22-450x480.png 450w\" sizes=\"(max-width: 471px) 100vw, 471px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>On the <strong>Apache<\/strong> tab, change the <strong>Main Port<\/strong> and <strong>SSL Port<\/strong> settings as needed.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24.png\" alt=\"Change the port settings for XAMPP HTTP requests in Apache\" class=\"wp-image-2605\" width=\"631\" height=\"403\" title=\"Change the port settings for XAMPP HTTP requests in Apache\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24.png 720w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24-500x319.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24-150x96.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24-600x383.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-24-450x288.png 450w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>Click the <strong>Save<\/strong> button on the two open windows to get back to the main Control Panel window.<\/li><li>Under the Apache line on the main Control Panel window, click the <strong>Config<\/strong> button and choose <code>Apache (httpd.conf)<\/code>.  This will open a configuration file in Notepad.<\/li><li>Scroll down to line <code>Listen 80<\/code><\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"698\" height=\"336\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25.png\" alt=\"HTTP port configuration in http.conf\" class=\"wp-image-2606\" title=\"HTTP port configuration in http.conf\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25.png 698w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-500x241.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-150x72.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-600x289.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-450x217.png 450w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\"><li>Change this to the desired port (ie. <code>8080<\/code>).<\/li><li>Scroll down to line <code>ServerName localhost:80<\/code><\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"796\" height=\"279\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27.png\" alt=\"ServerName port configuration in http.conf\" class=\"wp-image-2608\" title=\"ServerName port configuration in http.conf\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27.png 796w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-500x175.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-768x269.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-150x53.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-600x210.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-450x158.png 450w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\"><li>Save the file in Notepad.  Notepad can now be closed.<\/li><li>Under the Apache line on the main Control Panel window, click the <strong>Config<\/strong> button and choose <code>Apache (httpd-ssl.conf)<\/code>.  This will open a configuration file in Notepad.<\/li><li>Scroll down to line <code>Listen 443<\/code><\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"602\" height=\"213\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26.png\" alt=\"HTTP port configuration in http-ssl.conf\" class=\"wp-image-2607\" title=\"HTTP port configuration in http-ssl.conf\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26.png 602w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26-500x177.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26-150x53.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26-600x212.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/image-26-450x159.png 450w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"13\"><li>Change this to the desired port (ie. <code>444<\/code>).<\/li><li>Save the file in Notepad.  Notepad can now be closed.<\/li><li>In the main XAMPP Control Panel, restart <strong>Apache<\/strong> by clicking the <strong>Stop<\/strong> and then <strong>Start<\/strong> button.<\/li><\/ol>\n\n\n\n<p>That is all it takes to change the ports in XAMPP for HTTP and HTTPS.  Now you can access the websites with the new ports by adding <code>:&lt;port&gt;<\/code> at the end of the domain name.  (ie. <code>http:\/\/127.0.0.1:8080<\/code>)<\/p>","protected":false},"excerpt":{"rendered":"<p>XAMPP uses the standard ports of 80 and 443 for HTTP and HTTPS traffic. These ports can be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2609,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5],"tags":[351],"class_list":["post-2600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-development","tag-xampp"],"jetpack_featured_media_url":"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/03\/xampp-change-port.png","jetpack_shortlink":"https:\/\/wp.me\/p4BbcR-FW","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/comments?post=2600"}],"version-history":[{"count":2,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2600\/revisions"}],"predecessor-version":[{"id":2612,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2600\/revisions\/2612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media\/2609"}],"wp:attachment":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media?parent=2600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/categories?post=2600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/tags?post=2600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}