因為限制 svn 必須使用 SSL (https), 但當 SVN Server 安裝在內部主機, 透過外部的 ProxyPass 方式轉入存取, 就會出現 ProxyPass 無法透過標準方式設定的問題。
: LoadModule proxy_module modules/mod_proxy.so : LoadModule proxy_http_module modules/mod_proxy_http.so :
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy https://192.168.11.250/repos/>
Order deny,allow
Allow from all
</Proxy>
# Set TCP/IP network buffer size for better throughput (bytes)
ProxyReceiveBufferSize 4096
:
</IfModule>
# End of proxy directives.
:
:
ProxyPass /repos/ https://192.168.11.250/repos/
ProxyPassReverse /repos/ https://192.168.11.250/repos/
:
: SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000) : SSLEngine on SSLProxyEngine on :
:
SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /var/www/passwdfile
Require valid-user
</Location>
: