allow http auth to work in curl mode; add tests for basic and digest auth; refactor...
[plcapi.git] / tests / ci / travis / apache_vhost
index 87841d6..ee294fd 100644 (file)
     AllowOverride All
     Order deny,allow
     Allow from all
+
+    # needed for basic auth (PHP_AUTH_USER and PHP_AUTH_PW)
+    RewriteEngine on
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
   </Directory>
 
   # Wire up Apache to use Travis CI's php-fpm.
     AllowOverride All
     Order deny,allow
     Allow from all
+
+    # needed for basic auth (PHP_AUTH_USER and PHP_AUTH_PW)
+    RewriteEngine on
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
   </Directory>
 
   # Wire up Apache to use Travis CI's php-fpm.