Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f9530b74
Commit
f9530b74
authored
May 05, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1258157 - Document how to run Bugzilla as a PSGI application from Apache
r=dylan
parent
74f69103
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
4 deletions
+51
-4
apache.rst
docs/en/rst/installing/apache.rst
+51
-4
No files found.
docs/en/rst/installing/apache.rst
View file @
f9530b74
...
@@ -5,10 +5,11 @@
...
@@ -5,10 +5,11 @@
Apache
Apache
######
######
You have two options for running Bugzilla under Apache - mod_cgi (the
You have three options for running Bugzilla under Apache -
default) and mod_perl. mod_perl is faster but takes more resources. You
:ref:`mod_cgi <apache-mod_cgi>` (the default), :ref:`mod_perl <apache-mod_perl>`
should probably only consider mod_perl if your Bugzilla is going to be heavily
and :ref:`mod_proxy <apache-mod_proxy>` (to run Bugzilla as a PSGI application).
used.
mod_perl and mod_proxy are faster but take more resources. You should
probably only consider them if your Bugzilla is going to be heavily used.
These instructions require editing the Apache configuration file, which is:
These instructions require editing the Apache configuration file, which is:
...
@@ -143,3 +144,49 @@ under mod_perl:
...
@@ -143,3 +144,49 @@ under mod_perl:
* It is recommended that you have one Bugzilla instance running under mod_perl
* It is recommended that you have one Bugzilla instance running under mod_perl
on your server. Bugzilla has not been tested with more than one instance running.
on your server. Bugzilla has not been tested with more than one instance running.
.. _apache-mod_proxy:
Apache with mod_proxy
=====================
Bugzilla can run as a PSGI application, which greatly improves performance
compared to mod_cgi.
#. Install the `Plack <http://search.cpan.org/~miyagawa/Plack/script/plackup>`_
module. This will install the :file:`plackup` script used below.
#. Run :file:`plackup` from the :file:`bugzilla/` root directory:
:command:`plackup -s Gazelle --port 5000 -E production -a app.psgi`
This command starts :file:`plackup` using the
`Gazelle <http://search.cpan.org/~kazeburo/Gazelle/lib/Gazelle.pm>`_ handler.
Other PSGI handlers can be used, such as
`Starman <http://search.cpan.org/~miyagawa/Starman/lib/Starman.pm>`_.
#. Edit the Apache configuration file (see above).
#. Add the following lines:
.. code-block:: apache
<Location /bugzilla/>
ProxyPreserveHost On
ProxyPass "http://localhost:5000/"
ProxyPassReverse "http://localhost:5000/"
# Will pass either 'https' or 'http' (without quotes).
RequestHeader set X-Forwarded-Proto %{REQUEST_SCHEME}s
# Will pass the original path to the script, required to determine
# if we are on the attachment host.
RequestHeader set X-Forwarded-URI %{REQUEST_URI}s
</Location>
# Do not redirect requests for images and static CSS and JS files.
<LocationMatch "^/bugzilla/(data/(assets|webdot)|graphs|images)/">
ProxyPass "!"
</LocationMatch>
#. Restart Apache.
#. Set the :param:`inbound_proxies` parameter to :paramval:`127.0.0.1`.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment