Change 234

paul_goffin (paul_goffin)
paul_goffin committed this change into //guest/paul_goffin/apache1.3.6/src/modules/perforce
Request Review
Download .zip
Extended mod_webkeep.c to support multiple perforce servers via
introducing an index mechanism for the WebKeepAlias line.

This works as follows:

  suppose there are two perforce servers:
    server1:1666 (serving depot-1) and
    server2:1666 (serving depot-2),

  Then set MAX_SERVERS to 2 (in mod_webkeep.c) and
  set up the httpd.conf file as follows:

  WebKeepPort 0 server1:1666
  WebKeepPort 1 server2:1666

  WebKeepAlias /depot-1 //depot-1
  WebKeepAlias /depot-2 //depot-2

  WebKeepUser <whatever>
  WebKeepClient <whatever>
  WebKeepIndex  index.html

The order of the "WebKeepAlias" lines is used to
associate depot-1 with server 0 - i.e. server1:1666
and depot-2 with server 1 - i.e. server2:1666

This has been tested with Apache 1.3.6 and 1.3.9
on Redhat Linux 5.2 and 6.0

(I admit the implementation could be a lot
more elegant, but it works...)
  • Files 2
  • Comments 0
2 edited 0 added 0 deleted
README.WEBKEEP#2
Loading...
mod_webkeep.c#3
Loading...
Tip: Use n and p to cycle through the changes.