changed config/config.php to add ['REQUEST_PROTOCOL'].

changed the subversion repository anchor to have the trailing slash
This commit is contained in:
2014-10-12 13:05:40 +00:00
parent 9dcf9a5daa
commit 270c2c8f8b
4 changed files with 22 additions and 13 deletions

View File

@ -86,9 +86,16 @@ api_base_url = "http://127.0.0.1"
; https://${SERVER_NAME}/svn.
; You may specify multiple URLs separated with a comma as shown below:
; "http://${SERVER_NAME}/svn, https://${SERVER_NAME}/svn"
; REQUEST_PROTOCOL is resolved to either http or https.
; All specified URLs are shown in the repository list of the project overview
; page.
; You may use various items available in $_SERVER when composing the URL.
; For example, ${HTTP_HOST} maps to $_SERVER{'HTTP_HOST'}.
; Additionally, $_SERVER{'REQUEST_PROTOCOL'} added by config/config.php
; can be referenced with ${REQUEST_PROTOCOL} and it is resolved to either
; http or https.
;------------------------------------------------------------------------------
svn_base_url = "${REQUEST_PROTOCOL}://${SERVER_NAME}:${SERVER_PORT}/svn"
;svn_base_url = "${REQUEST_PROTOCOL}://${SERVER_NAME}:${SERVER_PORT}/svn"
svn_base_url = "${REQUEST_PROTOCOL}://${HTTP_HOST}/svn"
;------------------------------------------------------------------------------
; Login model to use.