{"id":1413,"date":"2019-06-13T12:24:16","date_gmt":"2019-06-13T09:24:16","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=1413"},"modified":"2019-06-13T12:24:16","modified_gmt":"2019-06-13T09:24:16","slug":"debian-apache2-client-denied-by-server-configuration-www-apache-2-serveri-https-probleem","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=1413","title":{"rendered":"Debian &#8211; Apache2: client denied by server configuration: \/www (apache 2 serveri https probleem)"},"content":{"rendered":"\n<p>I&#8217;ve seen a number of similar questions, but none for the&nbsp;<code>\/www<\/code>&nbsp;folder &#8211; as such, none of the related questions seem to fix my problem.<\/p>\n\n\n\n<p>When I try to access my website via localhost I get a 403 error, with the following error log:<\/p>\n\n\n\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\n<\/code><\/pre>\n\n\n\n<p>Now, I believe my virtual host is setup correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80>\n    DirectoryIndex index.php\n    DocumentRoot \/www\/var\/bluespice\n    ErrorLog ${APACHE_LOG_DIR}\/ORNL_bluespice_error.log\n    CustomLog ${APACHE_LOG_DIR}\/ORNL_bluespice_access.log combined\n    &lt;Directory \/www\/var\/bluespice>\n        Options FollowSymLinks\n        AllowOverride None\n        Require all granted\n    &lt;\/Directory>\n&lt;\/VirtualHost>\n<\/code><\/pre>\n\n\n\n<p>The only way I can get around this issue is to change the following part of the&nbsp;<code>apache2.conf<\/code>&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/>\n    Options FollowSymLinks\n    Require all denied\n&lt;\/Directory>\n<\/code><\/pre>\n\n\n\n<p>To:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/>\n    Options FollowSymLinks\n    Require all granted\n&lt;\/Directory>\n<\/code><\/pre>\n\n\n\n<p>But as I understand it, this is highly insecure, so I&#8217;d like to solve it in a safer manner.<\/p>\n\n\n\n<p>I&#8217;ve also tried adding the following to&nbsp;<code>apache2.conf<\/code>&nbsp;without success:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www>\n    Options FollowSymLinks\n    Require all granted\n&lt;\/Directory>\n<\/code><\/pre>\n\n\n\n<p>Can anyone see where I might have gone wrong?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve seen a number of similar questions, but none for the&nbsp;\/www&nbsp;folder &#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":621,"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-1413","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1413","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=1413"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1413\/revisions"}],"predecessor-version":[{"id":1414,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1413\/revisions\/1414"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/621"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}