Skip to content

Commit 09abbbd

Browse files
author
Richard Jones
committed
simpler proxy instructions
1 parent 67cfedb commit 09abbbd

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

doc/FAQ.txt

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Roundup FAQ
33
===========
44

5-
:Version: $Revision: 1.16 $
5+
:Version: $Revision: 1.17 $
66

77
.. contents::
88

@@ -32,15 +32,15 @@ in server behind apache and link it into your web tree
3232
How do I put Roundup behind Apache
3333
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3434

35-
We have a project (foo) running on ``foohost.com:8888``.
36-
We want ``http://foohost.com/FooIssues`` to use the roundup server, so we
37-
set that up on port 8888 on ``foohost.com`` with the ``config.py`` line::
35+
We have a project (foo) running on ``tracker.example:8080``.
36+
We want ``http://tracker.example/issues`` to use the roundup server, so we
37+
set that up on port 8080 on ``tracker.example`` with the ``config.py`` line::
3838

39-
TRACKER_WEB = 'http://foohost.com/FooIssues/'
39+
TRACKER_WEB = 'http://tracker.example/issues/'
4040

4141
We have a "foo_issues" tracker and we run the server with::
4242

43-
roundup-server -p 8888 foo_issues=/home/roundup/trackers/foo_issues
43+
roundup-server -p 8080 issues=/home/roundup/trackers/issues
4444

4545
Then, on the Apache machine (eg. redhat 7.3 with apache 1.3), in
4646
``/etc/httpd/conf/httpd.conf`` uncomment::
@@ -51,29 +51,26 @@ and::
5151

5252
AddModule mod_proxy.c
5353

54-
Then add::
54+
Then add
5555

5656
# roundup stuff (added manually)
5757
<IfModule mod_proxy.c>
58-
59-
RewriteEngine on
60-
61-
# General Roundup
62-
RewriteRule ^/Roundup$ Roundup/ [R]
63-
RewriteRule ^/Roundup/(.*)$ http://foohost.com:8888/$1 [P,L]
64-
65-
# Handle Foo Issues
66-
RewriteRule ^/FooIssues$ FooIssues/ [R]
67-
RewriteRule ^/FooIssues/(.*)$ http://foohost.com:8888/foo_issues/$1 [P,L]
68-
58+
# proxy through one tracker
59+
ProxyPass /issue/ http://tracker.example:8080/issues/
60+
# proxy through all tracker(*)
61+
#ProxyPass /roundup/ http://tracker.example:8080/
6962
</IfModule>
7063

7164
Then restart Apache. Now Apache will proxy the request on to the
7265
roundup-server.
7366

74-
You need to add the last 3 RewriteRule lines for each tracker that you have.
67+
Note that if you're proxying multiple trackers, you'll need to use the
68+
second ProxyPass rule described above. It will mean that your TRACKER_WEB
69+
will change to::
70+
71+
TRACKER_WEB = 'http://tracker.example/roundup/issues/'
7572

76-
You can now firewall off port 8888 from the rest of the world.
73+
Once you're done, you can firewall off port 8080 from the rest of the world.
7774

7875

7976
Roundup runs very slowly on my XP machine when accessed from the Internet

0 commit comments

Comments
 (0)