Problem about svn and redmine (in a subdirectory) » to-up-redmine.conf
| 1 |
|
|---|---|
| 2 |
ProxyRequests off |
| 3 |
|
| 4 |
<VirtualHost *:80> |
| 5 |
|
| 6 |
ServerName www.myserver.com |
| 7 |
|
| 8 |
DocumentRoot /opt/redmine/public |
| 9 |
|
| 10 |
<Directory "/opt/redmine/public"> |
| 11 |
Options FollowSymLinks |
| 12 |
AllowOverride None |
| 13 |
Order allow,deny |
| 14 |
Allow from all |
| 15 |
</Directory>
|
| 16 |
|
| 17 |
<Location /sys> |
| 18 |
Order deny,allow |
| 19 |
Allow from xxx.xxx.xxx.xxx |
| 20 |
Deny from all |
| 21 |
</Location>
|
| 22 |
|
| 23 |
|
| 24 |
<Proxy balancer://redmine_cluster> |
| 25 |
|
| 26 |
BalancerMember http://www.myserver.com:3000 |
| 27 |
BalancerMember http://www.myserver.com:3001 |
| 28 |
BalancerMember http://www.myserver.com:3002 |
| 29 |
|
| 30 |
Order deny,allow |
| 31 |
Deny from all |
| 32 |
Allow from all |
| 33 |
</Proxy>
|
| 34 |
|
| 35 |
ProxyPass /svn ! |
| 36 |
|
| 37 |
# 1 ProxyPass /redmine http://www.myserver.com:3000/
|
| 38 |
# 1 ProxyPassReverse /redmine http://www.myserver.com:3000/
|
| 39 |
# 1 ProxyPreserveHost on
|
| 40 |
|
| 41 |
# 2 RewriteEngine On
|
| 42 |
# 2 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
|
| 43 |
# 2 RewriteRule ^/(.*)$ balancer://redmine_cluster%{REQUEST_URI} [P,QSA,L]
|
| 44 |
|
| 45 |
</VirtualHost>
|
- « Previous
- 1
- 2
- Next »