<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.froelix.com/index.php?action=history&amp;feed=atom&amp;title=WebDAV_HTTP_authorization_does_not_work</id>
		<title>WebDAV HTTP authorization does not work - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.froelix.com/index.php?action=history&amp;feed=atom&amp;title=WebDAV_HTTP_authorization_does_not_work"/>
		<link rel="alternate" type="text/html" href="https://wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;action=history"/>
		<updated>2026-06-20T09:30:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;diff=53&amp;oldid=prev</id>
		<title>Froelix at 14:28, 12 April 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;diff=53&amp;oldid=prev"/>
				<updated>2012-04-12T14:28:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&#039;diff diff-contentalign-left&#039;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:28, 12 April 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L14&quot; &gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	$_SERVER[&amp;#039;PHP_AUTH_PW&amp;#039;] = strip_tags($password);&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	$_SERVER[&amp;#039;PHP_AUTH_PW&amp;#039;] = strip_tags($password);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The following &lt;/del&gt;code:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;this &lt;/ins&gt;code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;snippet&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if (isset($_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;]) &amp;amp;&amp;amp; preg_match(&amp;#039;/Basic\s+(.*)$/i&amp;#039;, $_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;], $matches))&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if (isset($_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;]) &amp;amp;&amp;amp; preg_match(&amp;#039;/Basic\s+(.*)$/i&amp;#039;, $_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;], $matches))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; {&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Froelix</name></author>	</entry>

	<entry>
		<id>https://wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;diff=52&amp;oldid=prev</id>
		<title>Froelix: Created page with &#039;&#039;&#039;&#039;Problem:&#039;&#039;&#039; * After trying to login to the WebDAV page of owncoud, the login window appears again and again. * This problem occurs if PHP is used as a CGI module.  &#039;&#039;&#039;Solution…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;diff=52&amp;oldid=prev"/>
				<updated>2012-04-12T14:26:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Problem:&amp;#039;&amp;#039;&amp;#039; * After trying to login to the WebDAV page of owncoud, the login window appears again and again. * This problem occurs if PHP is used as a CGI module.  &amp;#039;&amp;#039;&amp;#039;Solution…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Problem:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* After trying to login to the WebDAV page of owncoud, the login window appears again and again.&lt;br /&gt;
* This problem occurs if PHP is used as a CGI module.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Solution:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Change the Rewrite Rule of the &amp;#039;&amp;#039;.htaccess&amp;#039;&amp;#039; file to:&lt;br /&gt;
 RewriteRule .* - [env=REMOTE_USER:%{HTTP:Authorization},last]&lt;br /&gt;
* Insert behind the following lines of the file &amp;#039;&amp;#039;/lib/base.php&amp;#039;&amp;#039;&lt;br /&gt;
 //set http auth headers for apache+php-cgi work around if variable gets renamed by apache&lt;br /&gt;
 if (isset($_SERVER[&amp;#039;REDIRECT_HTTP_AUTHORIZATION&amp;#039;]) &amp;amp;&amp;amp; preg_match(&amp;#039;/Basic\s+(.*)$/i&amp;#039;, $_SERVER[&amp;#039;REDIRECT_HTTP_AUTHORIZATION&amp;#039;], $matches))&lt;br /&gt;
 {&lt;br /&gt;
 	list($name, $password) = explode(&amp;#039;:&amp;#039;, base64_decode($matches[1]));&lt;br /&gt;
 	$_SERVER[&amp;#039;PHP_AUTH_USER&amp;#039;] = strip_tags($name);&lt;br /&gt;
 	$_SERVER[&amp;#039;PHP_AUTH_PW&amp;#039;] = strip_tags($password);&lt;br /&gt;
 }&lt;br /&gt;
The following code:&lt;br /&gt;
 if (isset($_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;]) &amp;amp;&amp;amp; preg_match(&amp;#039;/Basic\s+(.*)$/i&amp;#039;, $_SERVER[&amp;#039;REDIRECT_REMOTE_USER&amp;#039;], $matches))&lt;br /&gt;
 {&lt;br /&gt;
 	list($name, $password) = explode(&amp;#039;:&amp;#039;, base64_decode($matches[1]));&lt;br /&gt;
 	$_SERVER[&amp;#039;PHP_AUTH_USER&amp;#039;] = strip_tags($name);&lt;br /&gt;
 	$_SERVER[&amp;#039;PHP_AUTH_PW&amp;#039;] = strip_tags($password);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* For more details, see [http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-164] and [http://meinnoteblog.wordpress.com/2012/02/17/owncloud-3-auf-all-inkl-webspace/].&lt;/div&gt;</summary>
		<author><name>Froelix</name></author>	</entry>

	</feed>