<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Httpd on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/httpd/</link>
    <description>Recent content in Httpd on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo -- 0.147.8</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #213243b1d6e8932079e09227d3f3ed0c806cd0c9</copyright>
    <lastBuildDate>Mon, 01 Mar 2010 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/httpd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Apache Webserver Snippets</title>
      <link>https://www.hascode.com/apache-webserver-snippets/</link>
      <pubDate>Mon, 01 Mar 2010 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/apache-webserver-snippets/</guid>
      <description>&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_deny_all_methods_excepting_post_and_get&#34;&gt;Deny all methods excepting POST and GET&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code&gt;RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS|HEAD)
RewriteRule .* - [F]&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_rewrite_all_aliases_for_a_domain_to_a_single_domain&#34;&gt;Rewrite all aliases for a domain to a single domain&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain1\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain2\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain3\.com [NC,OR]
RewriteRule (.*) http://mydomain.com/$1 [R=301,L]&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
