{"id":1790,"date":"2012-01-24T23:11:30","date_gmt":"2012-01-24T15:11:30","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1790"},"modified":"2023-04-28T09:49:57","modified_gmt":"2023-04-28T09:49:57","slug":"how-to-remove-red-hat-enterprise-linux-test-page","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-remove-red-hat-enterprise-linux-test-page\/","title":{"rendered":"How to Remove &#8220;Red Hat Enterprise Linux Test Page&#8221;"},"content":{"rendered":"<p>When you install a web server on Red Hat Enterprise Linux (RHEL), you may notice that the default page for the server is the &#8220;Red Hat Enterprise Linux Test Page.&#8221; While this page is useful for testing purposes, it is not appropriate for a production environment.<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-1024x503.png\" alt=\"RedHat Test Page\" width=\"1024\" height=\"503\" class=\"alignnone size-large wp-image-13922 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-1024x503.png 1024w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-300x147.png 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-128x63.png 128w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-420x206.png 420w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-540x265.png 540w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-720x353.png 720w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1-960x471.png 960w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/01\/1-1.png 1100w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/503;\" \/><\/p>\n<p>In this guide, we will show you how to remove the &#8220;Red Hat Enterprise Linux Test Page&#8221; from your RHEL web server.<\/p>\n<h2>Step 1: Connect to your Server<\/h2>\n<p>The first step is to connect to your RHEL server using SSH. Open your terminal and run the following command:<\/p>\n<pre>ssh username@server_ip_address<\/pre>\n<p>Replace &#8220;username&#8221; with your username and &#8220;server_ip_address&#8221; with the IP address of your server.<\/p>\n<h2>Step 2: Remove the Test Page Files<\/h2>\n<p>Once you are logged in to your server, you need to remove the test page files. Run the following command to navigate to the web server directory:<\/p>\n<pre>cd \/var\/www\/html\/<\/pre>\n<p>Now, delete the test page files by running the following command:<\/p>\n<pre>sudo rm index.html<\/pre>\n<p>This command will delete the &#8220;Red Hat Enterprise Linux Test Page&#8221; from your server.<\/p>\n<h2>Step 3: Restart the Apache Service<\/h2>\n<p>Finally, you need to restart the Apache service to apply the changes. Run the following command:<\/p>\n<pre>sudo systemctl restart httpd<\/pre>\n<p>This command will restart the Apache service and apply the changes you made.<\/p>\n<h2>Alternative Solution:<\/h2>\n<p>Go to welcome.conf file:<\/p>\n<pre>\r\n[root@rhel6 ~]# vi \/etc\/httpd\/conf.d\/welcome.conf\r\n<\/pre>\n<p>To disable the Welcome page, comment out all the lines below:<\/p>\n<pre class=\"code\">\r\n# This configuration file enables the default &quot;Welcome&quot;\r\n# page if there is no default index page present for\r\n# the root URL.  To disable the Welcome page, comment\r\n# out all the lines below.\r\n#\r\n&lt;LocationMatch &quot;^\/+$&quot;&gt;\r\n    Options -Indexes\r\n    ErrorDocument 403 \/error\/noindex.html\r\n&lt;\/LocationMatch&gt;\r\n<\/pre>\n<p>Comment out all the lines as below:<\/p>\n<pre class=\"code\">\r\n# This configuration file enables the default &quot;Welcome&quot;\r\n# page if there is no default index page present for\r\n# the root URL.  To disable the Welcome page, comment\r\n# out all the lines below.\r\n#\r\n#&lt;LocationMatch &quot;^\/+$&quot;&gt;\r\n#    Options -Indexes\r\n#    ErrorDocument 403 \/error\/noindex.html\r\n#&lt;\/LocationMatch&gt;\r\n<\/pre>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">ssh username@server_ip_address<\/span> &#8211; Connect to your server<\/li>\n<li><span class=\"fw-bold\">cd \/var\/www\/html\/<\/span> &#8211; Navigate to the web server directory<\/li>\n<li><span class=\"fw-bold\">sudo rm index.html<\/span> &#8211; Delete the test page files<\/li>\n<li><span class=\"fw-bold\">sudo systemctl restart httpd<\/span> &#8211; Restart the Apache service<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have shown you how to remove the &#8220;Red Hat Enterprise Linux Test Page&#8221; from your RHEL web server. By following these steps, you can customize the default page for your web server to suit your needs. We hope this guide has been helpful to you. If you have any comments or suggestions for improvements, please feel free to share them below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install a web server on Red Hat Enterprise Linux (RHEL), you may notice that the default page for the server is the &#8220;Red Hat Enterprise Linux Test Page.&#8221;&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103,2058],"tags":[1199,1536,1695,1696,1713,1715],"class_list":["post-1790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-rhel","tag-apache","tag-linux","tag-red-hat-enterprise-linux-test-page","tag-red-hat-enterprise-linux-test-page-remove","tag-rhel","tag-rhel-6"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=1790"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1790\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1499"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}