Adding reverse proxy support. Fixes T276
ClosedPublic

Authored by tflink on Jul 7 2014, 1:36 PM.

Details

Summary

Adds proxy handling support so that resultsdb_frontend can be proxied

Test Plan

Tested locally

Diff Detail

Repository
rRSFE resultsdb_frontend
Lint
Lint Skipped
Unit
Unit Tests Skipped
tflink retitled this revision from to Adding reverse proxy support. Fixes T276.Jul 7 2014, 1:36 PM
tflink updated this object.
tflink edited the test plan for this revision. (Show Details)
tflink added reviewers: mkrizek, jskladan.
tflink added a comment.Jul 7 2014, 1:52 PM

To test this, make sure that httpd is installed on the test machine. Then add a conf file in /etc/httpd/conf.d which contains:

RewriteEngine On

<Location /results/ >
  ProxyPass http://127.0.0.1:5001/
  ProxyPassReverse http://127.0.0.1:5001/
  RequestHeader add X-Script-Name /results/
</Location>

Then, while resultsdb and resultsdb_frontend are running, access http://127.0.0.1/results/. With resultsdb_frontend, you should be redirected to http://127.0.0.1/results/jobs instead of http://127.0.0.1/jobs

tflink abandoned this revision.Jul 7 2014, 4:22 PM

Since nobody who has time is willing to review this and it needs to be done, I'm just pushing the change since I'll be the one fixing stuff if it causes problems

tflink closed this revision.Jul 7 2014, 4:53 PM
tflink updated this revision to Diff 533.

Closed by commit rRSFEd72d3d061925 (authored by @tflink).