<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://support.cs.jhu.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Apache_2.4_Upgrade_Notes</id>
	<title>Apache 2.4 Upgrade Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://support.cs.jhu.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Apache_2.4_Upgrade_Notes"/>
	<link rel="alternate" type="text/html" href="https://support.cs.jhu.edu/wiki/index.php?title=Apache_2.4_Upgrade_Notes&amp;action=history"/>
	<updated>2026-04-09T14:09:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.6</generator>
	<entry>
		<id>https://support.cs.jhu.edu/wiki/index.php?title=Apache_2.4_Upgrade_Notes&amp;diff=7152&amp;oldid=prev</id>
		<title>Phil: /* Shibboleth */</title>
		<link rel="alternate" type="text/html" href="https://support.cs.jhu.edu/wiki/index.php?title=Apache_2.4_Upgrade_Notes&amp;diff=7152&amp;oldid=prev"/>
		<updated>2020-12-17T13:46:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Shibboleth&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:46, 17 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot; &gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Shibboleth ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Shibboleth ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The instructions from our [[Using Shibboleth]] page should be almost all of what you need.  The only change you need to make is to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;look &lt;/del&gt;put the &amp;lt;code&amp;gt;ShibCompatWith24&amp;lt;/code&amp;gt; directive inside an &amp;lt;code&amp;gt;IfVersion&amp;lt;/code&amp;gt; clause:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The instructions from our [[Using Shibboleth]] page should be almost all of what you need.  The only change you need to make is to put the &amp;lt;code&amp;gt;ShibCompatWith24&amp;lt;/code&amp;gt; directive inside an &amp;lt;code&amp;gt;IfVersion&amp;lt;/code&amp;gt; clause:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Phil</name></author>
	</entry>
	<entry>
		<id>https://support.cs.jhu.edu/wiki/index.php?title=Apache_2.4_Upgrade_Notes&amp;diff=7151&amp;oldid=prev</id>
		<title>Phil: Created page with &quot;In December 2020 we began the process of upgrading the primary department webserver, [https://www.cs.jhu.edu www.cs.jhu.edu], from Apache 2.2 to Apache 2.4.  This includes '''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://support.cs.jhu.edu/wiki/index.php?title=Apache_2.4_Upgrade_Notes&amp;diff=7151&amp;oldid=prev"/>
		<updated>2020-12-16T18:28:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In December 2020 we began the process of upgrading the primary department webserver, [https://www.cs.jhu.edu www.cs.jhu.edu], from Apache 2.2 to Apache 2.4.  This includes &amp;#039;&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In December 2020 we began the process of upgrading the primary department webserver, [https://www.cs.jhu.edu www.cs.jhu.edu], from Apache 2.2 to Apache 2.4.  This includes '''some incompatible changes'''; please read through this page to see if you need to adjust your website or personal web pages that we host.&lt;br /&gt;
&lt;br /&gt;
In general, these changes should only matter if you use a &amp;lt;code&amp;gt;.htaccess&amp;lt;/code&amp;gt; file anywhere within your webspace.  You can find out if you have one by running the following command on one of our [[Linux Clients on the CS Grad/Research Net|Linux clients]]:  &amp;lt;kbd&amp;gt;find ~/public_html -name .htaccess&amp;lt;/kbd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Everyone will have at least &amp;lt;code&amp;gt;~/public_html/.htaccess&amp;lt;/code&amp;gt;; if that's your only file and the only thing in that file is an &amp;lt;code&amp;gt;FcgidWrapper&amp;lt;/code&amp;gt; directive, you don't need to worry about anything on this page.  Otherwise, please continue reading.&lt;br /&gt;
&lt;br /&gt;
== Versioning ==&lt;br /&gt;
&lt;br /&gt;
In cases where the syntax for something has changed, you will need to have ''both'' syntaxes present in order for things to work on both our old and new server.  This will be required until the old server is fully retired, which we expect to happen in late January 2021.&lt;br /&gt;
&lt;br /&gt;
To accomplish this, you will need to use Apache's [https://httpd.apache.org/docs/2.2/mod/mod_version.html#ifversion IfVersion] directive, roughly like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;lt; 2.4&amp;gt;&lt;br /&gt;
  # Apache 2.2-specific things, e.g.:&lt;br /&gt;
  # Order ...&lt;br /&gt;
  # Allow ...&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;gt;= 2.4&amp;gt;&lt;br /&gt;
  # Apache 2.4 things, e.g.:&lt;br /&gt;
  # Require ...&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Access ==&lt;br /&gt;
&lt;br /&gt;
The Apache authorization directives have changed significantly.  Instead of a combination of &amp;lt;code&amp;gt;Order&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Allow&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Deny&amp;lt;/code&amp;gt; directives, you now need to use a singular &amp;lt;code&amp;gt;Require&amp;lt;/code&amp;gt; directive.  The [https://httpd.apache.org/docs/current/upgrading.html#run-time Apache upgrading page] goes into more detail, but some common cases are as follows:&lt;br /&gt;
&lt;br /&gt;
Allow all:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;lt; 2.4&amp;gt;&lt;br /&gt;
  Order allow,deny&lt;br /&gt;
  Allow from all&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;gt;= 2.4&amp;gt;&lt;br /&gt;
  Require all granted&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Allow only from a particular subnet:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;lt; 2.4&amp;gt;&lt;br /&gt;
  Order deny,allow&lt;br /&gt;
  Allow from 128.220.35.0/24&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;gt;= 2.4&amp;gt;&lt;br /&gt;
  Require ip 128.220.35.0/24&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For setups requiring a password, see either the Shibboleth section below (if you're [[Using Shibboleth]]) or the [https://httpd.apache.org/docs/current/upgrading.html#run-time Apache upgrading page] (if you're using Apache's basic authentication).&lt;br /&gt;
&lt;br /&gt;
== Shibboleth ==&lt;br /&gt;
&lt;br /&gt;
The instructions from our [[Using Shibboleth]] page should be almost all of what you need.  The only change you need to make is to look put the &amp;lt;code&amp;gt;ShibCompatWith24&amp;lt;/code&amp;gt; directive inside an &amp;lt;code&amp;gt;IfVersion&amp;lt;/code&amp;gt; clause:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfVersion &amp;lt; 2.4&amp;gt;&lt;br /&gt;
  ShibCompatWith24 On&lt;br /&gt;
&amp;lt;/IfVersion&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Webpages and Webservices]]&lt;/div&gt;</summary>
		<author><name>Phil</name></author>
	</entry>
</feed>