Testopia:Documentation:XMLRPC:Apache: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
Back to [[Bugzilla_XML-RPC_API]]
Back to [[Testopia:Documentation:XMLRPC]]


==Using the API and Basic Authentication with Apache==
==Using the API and Basic Authentication with Apache==

Latest revision as of 22:43, 1 December 2006

Back to Testopia:Documentation:XMLRPC

Using the API and Basic Authentication with Apache

In order for the API and Basic Authentication to work correctly with Apache, you must modify your Apache server's configuration to allow the HTTP_AUTHORIZATION environment parameter to be passed through.

  • This requires using the rewrite module.
LoadModule rewrite_module  /usr/lib/apache2-prefork/mod_rewrite.so
  • Here is a sample listing of an Apache .conf file:
<Directory "/home/apache/workspace/bugzilla">
       Options +ExecCGI +FollowSymLinks
       AllowOverride Limit
       DirectoryIndex index.cgi
       Order allow,deny
       Allow from all
       AuthType Basic
       AuthName "Bugzilla Basic Auth"
       AuthUserFile /home/apache/workspace/bugzilla/passwords
       Require valid-user
       RewriteEngine on
       RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
</Directory>