{"id":4314,"date":"2022-06-28T10:17:22","date_gmt":"2022-06-28T09:17:22","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4314"},"modified":"2022-06-28T10:40:32","modified_gmt":"2022-06-28T09:40:32","slug":"apache-config-new-server-setup","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/servers-hosting\/ubuntu\/apache\/apache-config-new-server-setup","title":{"rendered":"Apache Config (new server setup)"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Ensuring directory contents can&#8217;t be seen<\/h4>\n\n\n\n<p>Open the \/etc\/apache2\/apache2.conf file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/apache2.conf<\/code><\/pre>\n\n\n\n<p>Find this section:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www\/&gt;\n        Options Indexes FollowSymLinks\n        AllowOverride None\n        Require all granted\n&lt;\/Directory&gt;<\/code><\/pre>\n\n\n\n<p>Options Indexes FollowSymLinks to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Options -Indexes +FollowSymLinks<\/code><\/pre>\n\n\n\n<p>So it now looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www\/&gt;\n        Options -Indexes +FollowSymLinks\n        AllowOverride None\n        Require all granted\n&lt;\/Directory&gt;<\/code><\/pre>\n\n\n\n<p>Save and close the file. Then, restart the Apache webserver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ensuring directory contents can&#8217;t be seen Open the \/etc\/apache2\/apache2.conf file: Find this section: Options Indexes FollowSymLinks to: So it now looks like this: Save and close the file. Then, restart the Apache webserver:<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[345],"tags":[],"class_list":["post-4314","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4314"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4314\/revisions"}],"predecessor-version":[{"id":4315,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4314\/revisions\/4315"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}