{"id":32,"date":"2004-08-06T16:03:37","date_gmt":"2004-08-06T13:03:37","guid":{"rendered":"http:\/\/void.gr\/kargig\/blog\/?p=32"},"modified":"2004-08-06T16:06:12","modified_gmt":"2004-08-06T13:06:12","slug":"apache-tweaking","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2004\/08\/06\/apache-tweaking\/","title":{"rendered":"Apache &#8220;tweaking&#8221;"},"content":{"rendered":"<p>As a true fan of mod_ssl I wanted to &#8220;convert&#8221; my webmail instances from http to https. The  easiest way was to set it like this:<\/p>\n<blockquote><p><code><br \/>\n&lt;Location \"\/webmail\"&gt;<br \/>\n  SSLRequireSSL<br \/>\n&lt;\/Location&gt;<br \/>\n<\/code><\/p><\/blockquote>\n<p>But that was a bit problematic because when someone went to the old http:\/\/koko.foo\/webmail he was presented with an error. It was time for my other favorite apache module&#8230;mod_rewrite<br \/>\nSo I deleted the previous code and added the next piece of code inside the virtual host directive:<\/p>\n<blockquote><p><code><br \/>\nRewriteEngine On<br \/>\nRewriteCond %{HTTPS} !=on<br \/>\nRewriteRule ^\/webmail(.*) https:\/\/%{SERVER_NAME}\/webmail$1 [R,L]<br \/>\n<\/code><\/p><\/blockquote>\n<p>I also splitted the webdav configuration part (like I have done with ssl) because the httpd.conf was getting larger and larger, and it was already difficult to browse it and edit it.<\/p>\n<p>That&#8217;s it for now&#8230;I am going to play a bit of Doom3 and then read a couple of pages from Da Vinci Code book I&#8217;ve bought.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a true fan of mod_ssl I wanted to &#8220;convert&#8221; my webmail instances from http to https. The easiest way was to set it like this: &lt;Location &#8220;\/webmail&#8221;&gt; SSLRequireSSL &lt;\/Location&gt; But that was a bit problematic because when someone went to the old http:\/\/koko.foo\/webmail he was presented with an error. It was time for my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"views":3210,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}