{"id":136,"date":"2021-09-30T10:34:24","date_gmt":"2021-09-30T10:34:24","guid":{"rendered":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/?p=136"},"modified":"2021-09-30T10:34:24","modified_gmt":"2021-09-30T10:34:24","slug":"apache-konfiguraatio","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/2021\/09\/30\/apache-konfiguraatio\/","title":{"rendered":"Apache konfiguraatio"},"content":{"rendered":"\n<p>Apachen konfiguraatio l\u00f6ytyy kansiosta \/etc\/apache2.<br>Sielt\u00e4 avataan nanolla tiedosto apache2.conf<br>Kohdasta directory muutetaan kansion asetus halutuksi, oletuksena se on \/var\/www -> esim. wwwdata<\/p>\n\n\n\n<p>Serverin signature tiedot pois p\u00e4\u00e4lt\u00e4:<br>ServerSignature off<br>ServerTokens Prod<\/p>\n\n\n\n<p>Htaccessin toiminta sallitaan seuraavalla komennolla:<br>AllowOverride AuthConfig, eli poistetaan None ja vaihdetaan tilalle AuthConfig. Huomio isot ja pienet kirjaimet.<\/p>\n\n\n\n<p>Kansio-osoitus tulee muuttaa my\u00f6s \/etc\/apache2\/sites-available kansiosta, tiedoston nimi on 000-default.conf, sen sis\u00e4lt\u00e4 vaihdetaan rivi <br>DocumentRoot ja kun halutaan osoitus wwwdataksi niin se tehd\u00e4\u00e4n n\u00e4in: DocumentRoot  \/var\/www\/html -> \/wwwdata\/<\/p>\n\n\n\n<p>Palvelun uudelleen k\u00e4ynnist\u00e4minen:<br>service apache2 restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apachen konfiguraatio l\u00f6ytyy kansiosta \/etc\/apache2.Sielt\u00e4 avataan nanolla tiedosto apache2.confKohdasta directory muutetaan kansion asetus halutuksi, oletuksena se on \/var\/www -> esim. wwwdata Serverin signature tiedot pois p\u00e4\u00e4lt\u00e4:ServerSignature offServerTokens Prod Htaccessin toiminta sallitaan seuraavalla komennolla:AllowOverride AuthConfig, eli poistetaan None ja vaihdetaan tilalle AuthConfig. Huomio isot ja pienet kirjaimet. Kansio-osoitus tulee muuttaa my\u00f6s \/etc\/apache2\/sites-available kansiosta, tiedoston nimi on &hellip; <a href=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/2021\/09\/30\/apache-konfiguraatio\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Apache konfiguraatio<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/136"}],"collection":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":137,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions\/137"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}