{"id":5808,"date":"2024-02-12T20:34:54","date_gmt":"2024-02-12T19:34:54","guid":{"rendered":"https:\/\/ekiwi.de\/?p=5808"},"modified":"2024-02-12T20:34:54","modified_gmt":"2024-02-12T19:34:54","slug":"linux-apache2-htaccess-dateien-aktivieren","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/index.php\/5808\/linux-apache2-htaccess-dateien-aktivieren\/","title":{"rendered":"Linux: Apache2 .htaccess Dateien aktivieren"},"content":{"rendered":"<p>.htaccess Dateien in Linux, Ubuntu aktivieren.<\/p>\n<p><!--more--><\/p>\n<p>Am Wochenende habe ich mal wieder Nextcloud auf meinem neuen Server installiert. Bei der Pr\u00fcfung des Systems wurde dann gemeckert, dass die Datenverzeichnisse zugreifbar sind, weil die .htaccess Dateien nicht beachtet werden.<\/p>\n<p>Ein frisch installierter Apache-Webserver hat erstmal keine .htaccess Dateien aktiviert, dies muss in der Konfigurationsdatei erledigt werden.<\/p>\n<p>Hierzu bearbeiten wir die &#8222;apache2.conf&#8220; im Verzeichnis &#8222;\/etc\/apache2&#8220;:<\/p>\n<pre>\r\nsudo vim \/etc\/apache2\/apache2.conf\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/02\/apache_htaccess_1.png\" alt=\"\" width=\"484\" height=\"93\" class=\"alignnone size-full wp-image-5809\" srcset=\"\/wp-content\/uploads\/2024\/02\/apache_htaccess_1.png 484w, \/wp-content\/uploads\/2024\/02\/apache_htaccess_1-300x58.png 300w, \/wp-content\/uploads\/2024\/02\/apache_htaccess_1-480x93.png 480w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>Hier scrollen wir nun zum &#8222;Directory&#8220;-Eintrag f\u00fcr unser Web-Verzeichnis und setzen den Wert f\u00fcr &#8222;AllowOverride&#8220; auf &#8222;All&#8220;. Anschlie\u00dfend starten wir den Apache noch neu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/02\/apache_htaccess_2.png\" alt=\"\" width=\"747\" height=\"124\" class=\"alignnone size-full wp-image-5811\" srcset=\"\/wp-content\/uploads\/2024\/02\/apache_htaccess_2.png 747w, \/wp-content\/uploads\/2024\/02\/apache_htaccess_2-300x50.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>.htaccess Dateien in Linux, Ubuntu aktivieren.<\/p>\n","protected":false},"author":1,"featured_media":63,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[12],"tags":[73,665,763],"class_list":["post-5808","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-apache","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/5808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/comments?post=5808"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/5808\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media\/63"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media?parent=5808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/categories?post=5808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/tags?post=5808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}