Closed Bug 1258157 Opened 10 years ago Closed 10 years ago

Document how to run Bugzilla as a PSGI application from Apache

Categories

(Bugzilla :: Documentation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file, 2 obsolete files)

mod_proxy lets Apache pass requests to plackup. This significantly improves performances.
Attached patch patch, v1 (obsolete) — Splinter Review
Attachment #8732569 - Flags: review?(gerv)
Comment on attachment 8732569 [details] [diff] [review] patch, v1 Dylan knows this stuff much better than me... Gerv
Attachment #8732569 - Flags: review?(gerv) → review?(dylan)
Comment on attachment 8732569 [details] [diff] [review] patch, v1 Review of attachment 8732569 [details] [diff] [review]: ----------------------------------------------------------------- ::: docs/en/rst/installing/apache.rst @@ +173,5 @@ > + .. code-block:: apache > + > + <Location /bugzilla> > + ProxyPass "http://localhost:5000" > + </Location> I was not able to get this to work as described here unless the Plack webapp is in the root of the webserver. The "Location /bugzilla" would work for the initial request, but all requests after would drop off /bugzilla from the URL. On a system like mine where I have multiple bugzilla installations each as a subdirectory under main document root, I had to instead configure it as: ProxyPass /1258187/ http://localhost:5000/ <Location /1258187> RequestHeader set Request-Base /1258187 </Location> Otherwise all of the static files would 404. Am I doing this incorrectly or do the docs need to be more explicit?
Also the docs state it is also important to set permissions for proxying for security purposes, below is an example. <Proxy *> Order allow,deny Allow from all </Proxy> dkl
Comment on attachment 8732569 [details] [diff] [review] patch, v1 Review of attachment 8732569 [details] [diff] [review]: ----------------------------------------------------------------- Some configuration is required too, the param inbound_proxies needs to be set (even for 127.0.0.1) else remote_ip() will return the wrong value.
Attachment #8732569 - Flags: review?(dylan) → review-
(In reply to David Lawrence [:dkl] from comment #3) > Otherwise all of the static files would 404. Am I doing this incorrectly or > do the docs need to be more explicit? I don't need to do all the steps you describe. My Apache + Plack installation works exactly as described here. FYI, my Bugzilla installation is located in /var/www/html/bugzilla/.
(In reply to Frédéric Buclin from comment #6) > (In reply to David Lawrence [:dkl] from comment #3) > > Otherwise all of the static files would 404. Am I doing this incorrectly or > > do the docs need to be more explicit? > > I don't need to do all the steps you describe. My Apache + Plack > installation works exactly as described here. FYI, my Bugzilla installation > is located in /var/www/html/bugzilla/. Cool. Can you provide me your httpd config so I can compare to mine. I have my document root somewhere other than /var/www/html but it should be similar to your setup. dkl
(In reply to David Lawrence [:dkl] from comment #4) > Also the docs state it is also important to set permissions for proxying for > security purposes, below is an example. This is only necessary for direct proxy. My example uses reverse proxy, which doesn't require it.
Attached patch patch, v2 (obsolete) — Splinter Review
dkl: does this configuration work for you?
Attachment #8732569 - Attachment is obsolete: true
Attachment #8735034 - Flags: review?(dylan)
Attachment #8735034 - Flags: review?(dkl)
User Story: (updated)
Depends on: 1261538
(err... I didn't mean to click on the User Story field) The documentation will have to be updated once bug 1261538 is fixed as I have to mention the headers Apache must pass to make attachments work.
User Story: (updated)
Attached patch patch, v2.1Splinter Review
Takes bug 1261538 into account.
Attachment #8735034 - Attachment is obsolete: true
Attachment #8735034 - Flags: review?(dylan)
Attachment #8735034 - Flags: review?(dkl)
Attachment #8739616 - Flags: review?(dylan)
Comment on attachment 8739616 [details] [diff] [review] patch, v2.1 Review of attachment 8739616 [details] [diff] [review]: ----------------------------------------------------------------- doc patches should never this long, I'm sorry. This reads fine and looks correct r=dylan
Attachment #8739616 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 74f6910..f9530b7 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: