{"id":1453,"date":"2019-10-26T23:43:29","date_gmt":"2019-10-26T20:43:29","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=1453"},"modified":"2019-10-26T23:44:05","modified_gmt":"2019-10-26T20:44:05","slug":"1453-2","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=1453","title":{"rendered":"Debian &#8211; Apache2: client denied by server configuration: \/www"},"content":{"rendered":"\r\n<p>I&#8217;ve seen a number of similar questions, but none for the\u00a0<code>\/www<\/code>\u00a0folder &#8211; as such, none of the related questions seem to fix my problem.<\/p>\r\n\r\n\r\n\r\n<p>When I try to access my website via localhost I get a 403 error, with the following error log:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>[Wed May 10 11:41:10.930677 2017] [authz_core:error] [pid 1113] [client 127.0.0.1:38380] AH01630: client denied by server configuration: \/www\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Now, I believe my virtual host is setup correctly:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\r\n    DirectoryIndex index.php\r\n    DocumentRoot \/www\/var\/bluespice\r\n    ErrorLog ${APACHE_LOG_DIR}\/ORNL_bluespice_error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/ORNL_bluespice_access.log combined\r\n    &lt;Directory \/www\/var\/bluespice&gt;\r\n        Options FollowSymLinks\r\n        AllowOverride None\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p>The only way I can get around this issue is to change the following part of the\u00a0<code>apache2.conf<\/code>\u00a0file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>&lt;Directory \/&gt;\r\n    Options FollowSymLinks\r\n    Require all denied\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p>To:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>&lt;Directory \/&gt;\r\n    Options FollowSymLinks\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p>But as I understand it, this is highly insecure, so I&#8217;d like to solve it in a safer manner.<\/p>\r\n\r\n\r\n\r\n<p>I&#8217;ve also tried adding the following to\u00a0<code>apache2.conf<\/code>\u00a0without success:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www&gt;\r\n    Options FollowSymLinks\r\n    Require all granted\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Can anyone see where I might have gone wrong?<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve seen a number of similar questions, but none for the\u00a0\/www\u00a0folder &#8211; as such, none of the related questions seem to fix my problem. When I try to access my website via localhost I get a 403 error, with the following error log: Now, I believe my virtual host is setup correctly: The only way [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1451,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-1453","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1453"}],"version-history":[{"count":2,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1453\/revisions"}],"predecessor-version":[{"id":1455,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1453\/revisions\/1455"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1451"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}