svn 应该是整合在 apache 里了吧?我也遇到过类似的问题,通过 nginx 反代时子目录不好处理。所以我在 apache 中单独为 svn 创建了一个虚拟主机。然后,nginx 配置如下:
```conf
#...
server_name
svn.honeyhaw.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/
svn.honeyhaw.com;
ssl on;
ssl_certificate conf.d/certs/startssl_svn_honeyhaw.com.crt;
ssl_certificate_key conf.d/certs/honeyhaw.com.key;
include conf.d/templates/security.conf;
include conf.d/templates/ssl-security.conf;
location ^~ /{
proxy_set_header Destination $http_destination;
#proxy_pass https://192.168.183.70;
proxy_pass https://127.0.0.1:443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
#...
```