Testopia:Documentation:XMLRPC:Apache
(Redirected from Bugzilla XML-RPC API Apache)
Jump to navigation
Jump to search
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>