{"id":219,"date":"2016-11-05T06:24:22","date_gmt":"2016-11-05T14:24:22","guid":{"rendered":"https:\/\/www.actinia.me\/?p=219"},"modified":"2018-01-18T22:41:49","modified_gmt":"2018-01-19T06:41:49","slug":"500-internal-server-error-on-visiting-encrypted-path","status":"publish","type":"post","link":"https:\/\/www.actinia.me\/?p=219","title":{"rendered":"500 internal server error on visiting encrypted path"},"content":{"rendered":"<p>I use\u00a0.htaccess to encrypt &#8220;www.actinia.me\/test&#8221;<\/p>\n<p>the\u00a0.htaccess file is:<\/p>\n<p><strong>AuthUserFile \/home\/.htpasswd<br \/>\nAuthName &#8220;ceshiyonghu&#8221;<br \/>\nAuthType Basic<br \/>\nRequire user ceshiyonghu<\/strong><\/p>\n<p>but when I visited the url, I got a\u00a0500 internal server error. I checked the error log (\/var\/log\/apache2\/error.log) and find the &#8220;AuthUserFile not allowed here&#8221; record.<\/p>\n<p>To solve this, I added this:<\/p>\n<p><strong>&lt;Directory \/var\/www\/test\/&gt;<\/strong><br \/>\n<strong> Options Indexes FollowSymLinks MultiViews<\/strong><br \/>\n<strong> AllowOverride FileInfo Indexes Authconfig<\/strong><br \/>\n<strong>&lt;\/Directory&gt;<\/strong><\/p>\n<p>to apache config file (\/etc\/apache2\/apache2.conf),<\/p>\n<p>and executed:<\/p>\n<p>sudo a2enmod rewrite<\/p>\n<p>sudo service apache2 restart<\/p>\n<p>Now I can visit my test folder!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use\u00a0.htaccess to encrypt &#8220;www.actinia.me\/test&#8221; the\u00a0.htaccess file is: AuthUserFile \/home\/.htpasswd AuthName &#8220;ceshiyonghu&#8221; AuthType Basic Require user ceshiyonghu but when I visited the url, I got a\u00a0500 internal server error. I checked the error log (\/var\/log\/apache2\/error.log) and find the &#8220;AuthUserFile not allowed here&#8221; record. To solve this, I added this: &lt;Directory \/var\/www\/test\/&gt; Options Indexes FollowSymLinks MultiViews [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219"}],"version-history":[{"count":1,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions\/220"}],"wp:attachment":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}