{"id":2812,"date":"2019-05-03T09:17:54","date_gmt":"2019-05-03T06:17:54","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2812"},"modified":"2019-05-03T09:17:55","modified_gmt":"2019-05-03T06:17:55","slug":"remove-apache-test-page-on-fedora-30-29","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/remove-apache-test-page-on-fedora-30-29\/","title":{"rendered":"Remove Apache Test Page on Fedora 30\/29"},"content":{"rendered":"\n<p>In this guide, we are going to briefly show you how to remove Apache test page on Fedora 30\/29. As one of the ways of hardening your web server, it is good idea to remove Apache test page.<\/p>\n\n\n\n<p>Want to install Apache on Fedora 30? See our guide by following the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-apache-on-fedora-30\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Apache on Fedora 30<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remove Apache Test Page on Fedora 30\/29<\/h3>\n\n\n\n<p>The Apache test page is located under <strong>\/usr\/share\/httpd\/noindex\/<\/strong>. This page is defined by the configuration file, <strong>\/etc\/httpd\/conf.d\/welcome.conf<\/strong>.<\/p>\n\n\n\n<p>Therefore, to remove this test page, you can explicitly remove the welcome page configuration file, rename it or comment all the lines defining this page.<\/p>\n\n\n\n<p>To comment out the test page configuration file, open it with your preferred editor and edit it such that it looks like;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \n# This configuration file enables the default \"Welcome\" page if there\n# is no default index page present for the root URL.  To disable the\n# Welcome page, comment out all the lines below. \n#\n# NOTE: if this file is removed, it will be restored on upgrades.\n#\n#&lt;LocationMatch \"^\/+$\">\n#    Options -Indexes\n#    ErrorDocument 403 \/.noindex.html\n#&lt;\/LocationMatch>\n#\n#&lt;Directory \/usr\/share\/httpd\/noindex>\n#    AllowOverride None\n#    Require all granted\n#&lt;\/Directory>\n#\n#Alias \/.noindex.html \/usr\/share\/httpd\/noindex\/index.html<\/code><\/pre>\n\n\n\n<p>To rename the test page configuration;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mv \/etc\/httpd\/conf.d\/welcome.conf \/etc\/httpd\/conf.d\/welcome.conf.bak<\/code><\/pre>\n\n\n\n<p>To remove it explicitly;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rm -rf mv \/etc\/httpd\/conf.d\/welcome.conf<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Restart Apache<\/h3>\n\n\n\n<p>Once you have done that, restart the web server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart httpd<\/code><\/pre>\n\n\n\n<p>Well, you can also remove the test page itself.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mv \/usr\/share\/httpd\/noindex\/index.html \/usr\/share\/httpd\/noindex\/index.html,bak<\/code><\/pre>\n\n\n\n<p>That is all about how to remove Apache welcome page on Fedora 30\/29. Feel free to drop any comments. Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to briefly show you how to remove Apache test page on Fedora 30\/29. As one of the ways of<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[254,253],"tags":[202,925,924],"class_list":["post-2812","post","type-post","status-publish","format-standard","hentry","category-apache","category-web-servers","tag-apache","tag-apache-test-page","tag-fedora-30","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2812"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2812"}],"version-history":[{"count":1,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2812\/revisions"}],"predecessor-version":[{"id":2813,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2812\/revisions\/2813"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}