<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.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://www.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://www.wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;action=history"/>
		<updated>2026-04-05T18:21:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://www.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://www.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='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' 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='diff-marker'&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['PHP_AUTH_PW'] = strip_tags($password);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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['PHP_AUTH_PW'] = strip_tags($password);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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='diff-marker'&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='diff-marker'&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='diff-marker'&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['REDIRECT_REMOTE_USER']) &amp;amp;&amp;amp; preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_REMOTE_USER'], $matches))&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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['REDIRECT_REMOTE_USER']) &amp;amp;&amp;amp; preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_REMOTE_USER'], $matches))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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://www.wiki.froelix.com/index.php?title=WebDAV_HTTP_authorization_does_not_work&amp;diff=52&amp;oldid=prev</id>
		<title>Froelix: Created page with ''''Problem:''' * 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.  '''Solution…'</title>
		<link rel="alternate" type="text/html" href="https://www.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;'''Problem:'''&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;
'''Solution:'''&lt;br /&gt;
* Change the Rewrite Rule of the ''.htaccess'' file to:&lt;br /&gt;
 RewriteRule .* - [env=REMOTE_USER:%{HTTP:Authorization},last]&lt;br /&gt;
* Insert behind the following lines of the file ''/lib/base.php''&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['REDIRECT_HTTP_AUTHORIZATION']) &amp;amp;&amp;amp; preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_HTTP_AUTHORIZATION'], $matches))&lt;br /&gt;
 {&lt;br /&gt;
 	list($name, $password) = explode(':', base64_decode($matches[1]));&lt;br /&gt;
 	$_SERVER['PHP_AUTH_USER'] = strip_tags($name);&lt;br /&gt;
 	$_SERVER['PHP_AUTH_PW'] = strip_tags($password);&lt;br /&gt;
 }&lt;br /&gt;
The following code:&lt;br /&gt;
 if (isset($_SERVER['REDIRECT_REMOTE_USER']) &amp;amp;&amp;amp; preg_match('/Basic\s+(.*)$/i', $_SERVER['REDIRECT_REMOTE_USER'], $matches))&lt;br /&gt;
 {&lt;br /&gt;
 	list($name, $password) = explode(':', base64_decode($matches[1]));&lt;br /&gt;
 	$_SERVER['PHP_AUTH_USER'] = strip_tags($name);&lt;br /&gt;
 	$_SERVER['PHP_AUTH_PW'] = strip_tags($password);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''Note:'''&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>