Changeset 1097
- Timestamp:
- 06/24/11 17:15:39 (11 months ago)
- Location:
- trunk/lib
- Files:
-
- 1 added
- 5 modified
- 1 moved
-
middleware/config_http_reverse_proxy.sh (modified) (1 diff)
-
template/config_svn_repositories.ex (moved) (moved from trunk/lib/template/deb/config_svn_repositories.ex) (1 diff)
-
template/rpm/install_svn.ex (added)
-
template/vh4reverse_proxy (modified) (1 diff)
-
template/vh4svn_server (modified) (2 diffs)
-
template/vh_common4reverse_proxy.pm (modified) (1 diff)
-
template/vh_svn4reverse_proxy (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/middleware/config_http_reverse_proxy.sh
r1096 r1097 11 11 placomgr put vh4reverse_proxy {apache_vh_conf_file} $* 12 12 placomgr put vh_spip4reverse_proxy {apache_spip_conf_file} $* 13 #placomgr put vh_svn4reverse_proxy {apache_svn_conf_file} $*13 placomgr put vh_svn4reverse_proxy {apache_svn_conf_file} $* 14 14 #placomgr put vh_sympa4reverse_proxy {apache_sympa_conf_file} $* 15 15 placomgr put vh_horde4reverse_proxy {apache_horde_conf_file} $* -
trunk/lib/template/config_svn_repositories.ex
r1094 r1097 10 10 $OUT .= "then \n"; 11 11 $OUT .= "svnadmin create --fs-type fsfs $dir_repo/$r \n"; 12 $OUT .= "chown -R www-data:www-data$dir_repo/$r \n";12 $OUT .= "chown -R $apache_uid:$apache_uid $dir_repo/$r \n"; 13 13 $OUT .= "chmod -R 700 $dir_repo/$r \n" ; 14 14 $OUT .= "fi \n"; -
trunk/lib/template/vh4reverse_proxy
r1096 r1097 61 61 } 62 62 63 #if ($v->{type} =~ /^svn$/i) {64 #writecommonssl($v,$vh,$vh,0,0,1)65 #}63 if ($v->{type} =~ /^svn$/i) { 64 $OUT.=writecommonssl($v,$vh,$vh,0,0,1) 65 } 66 66 } 67 67 -
trunk/lib/template/vh4svn_server
r1094 r1097 24 24 LogLevel Warn 25 25 26 <Location / >26 <Location /svn> 27 27 DAV svn 28 28 SVNParentPath {!$dir_repo!} … … 33 33 { 34 34 $OUT .= "# $r\n"; 35 $OUT .= " <Location / $r>\n";35 $OUT .= " <Location /svn/$r>\n"; 36 36 $OUT .= " AuthType Basic\n"; 37 37 $OUT .= " AuthName \"Svn repository : $r\"\n"; -
trunk/lib/template/vh_common4reverse_proxy.pm
r1096 r1097 59 59 $out.=sprintf("\t\tSetOutputFilter INFLATE;proxy-html;DEFLATE\n"); 60 60 } 61 if ($svn) { 62 $out.=sprintf("\t\t<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>\n"); 63 $out.=sprintf("\t\t\tOrder Deny,Allow\n"); 64 $out.=sprintf("\t\t\tAllow from all\n"); 65 $out.=sprintf("\t\t\tSatisfy Any\n"); 66 $out.=sprintf("\t\t</Limit>\n"); 67 } 61 68 $out.=sprintf("\t</Location>\n\n"); 62 69 -
trunk/lib/template/vh_svn4reverse_proxy
r1094 r1097 8 8 $OUT=""; 9 9 10 sub writeconf11 {12 my($v,$vh,$https,$targetvh,$revproxy,$rewritehtml,$dav) = @_ ;13 14 $OUT .= writecommonconf(@_) ;15 16 if ($revproxy)17 {18 $OUT.=sprintf(" ProxyPass / http://%s/\n",$targetvh);19 if ($rewritehtml) { $OUT.=sprintf(" ProxyHTMLURLMAP http://%s/ /\n",$targetvh); }20 if ($dav)21 {22 $OUT.=sprintf(" <Location /dav>\n");23 $OUT.=sprintf(" RequestHeader edit Destination ^https://%s/(.*)\$ http://%s/\$1\n",$v->{external_server_name},$targetvh);24 $OUT.=sprintf(" </Location>\n");25 }26 $OUT.=sprintf(" <Location />\n");27 $OUT.=sprintf(" ProxyPassReverse http://%s/\n",$targetvh);28 29 $OUT.=" <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>\n";30 $OUT.=" Order Deny,Allow\n";31 $OUT.=" Allow from all\n";32 $OUT.=" Satisfy Any\n";33 $OUT.=" </Limit>\n";34 35 if ($rewritehtml) { $OUT.=sprintf(" SetOutputFilter INFLATE;proxy-html;DEFLATE\n"); }36 $OUT.=sprintf(" </Location>\n");37 }38 $OUT.="</VirtualHost>\n";39 $OUT.="</IfModule>\n" if $https ;40 }41 42 10 while (($k,$v)=each %vh) 43 11 { … … 45 13 next unless $v->{type} =~ /^svn$/i ; 46 14 47 # HTTPS vh definition 48 # writeconf($v,$vh,$https,$targetvh,$revproxy,$rewritehtml,$dav) 49 writeconf($v,$vh,1,$vh,1,0,0) ; 15 # HTTP vh definition 16 # writeconf($v,$vh,$targetvh,$revproxy,$rewritehtml,$dav) 17 $OUT.=writecommontop($v,$vh,$vh,0,0,0) ; 18 $OUT.=sprintf("\tRewriteRule ^/(.*)${dollar} https://%s/%s/${dollar}1\n" ,$external_hostname,$vh); 19 $OUT.=writecommonbottom($v,$vh,$vh,0,0,0); 50 20 } 51 21 !}
![(please configure the [header_logo] section in trac.ini)](/logo-cnrs.jpg)