mod-dav-svn

Some help on mod_dav, svn and Limit-ing access please.

耗尽温柔 提交于 2020-01-05 08:56:30
问题 Here's the entry in my Apache configuration file <Location /svn/repo1> DAV svn SVNPath /var/svn/repositories/repo1 AuthType Basic AuthName "SVNRepo" AuthUserFile /var/httpd/passwd Order deny,allow Require valid-user <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require user svn </Limit> Not sure if its obvious what I'm trying to do, but I want to allow ANY authenticated user read-only access to the repository, but LIMIT PUT POST etc to only 1 particular (authenticated

What are the MIME types for .NET project source code files?

混江龙づ霸主 提交于 2020-01-01 10:28:16
问题 Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project? If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the mod_dav_svn module when viewing a Subversion repository from a web browser, so anything that'll help Firefox et al render the file correctly would do the trick. 回答1: Use the information on this answer to easily determine the MIME types. For example (running on Windows XP SP2) I got

Dynamic subversion repos via subdomains (in Apache)

核能气质少年 提交于 2020-01-01 01:17:10
问题 I'm trying to set up a subdomain-to-repository translation in Apache. Example: foobars.domain.com -> /server/svnrepos/foobars I've tried to get this done with mod_rewrite : RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.domain\.com$ [NC] RewriteRule ^/svn(.*) /svn/%2$1 [PT] However, this causes problems with basic svn operations; 'checkout' causes this pretty thing: $ svn co http://foobars.domain.com/svn svn: '/svn/foobars/!svn/vcc/default' path

LocationMatch and DAV svn

时光总嘲笑我的痴心妄想 提交于 2019-12-24 03:53:25
问题 I am trying to make our subversion repository accessible via multiple URLs. To do so, I was thinking to use the LocationMatch directive. My configuration is: <Location ~ "/(svn|repository)"> DAV svn SVNPath /opt/svn AuthzSVNAccessFile /etc/subversion/access </Location> The above configuration does NOT work ... Strange thing is that if i use for example this configuration, it works well for both URLs: <Location ~ "/(svn|repository)"> SetHandler server-status </Location> For me it looks like

What are the MIME types for .NET project source code files?

≡放荡痞女 提交于 2019-12-04 05:16:02
Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project? If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the mod_dav_svn module when viewing a Subversion repository from a web browser, so anything that'll help Firefox et al render the file correctly would do the trick. Jorge Ferreira Use the information on this answer to easily determine the MIME types. For example (running on Windows XP SP2) I got the following results: cs - text/plain resx - text/xml Apparently Gnome uses text/x-csharp for

Dynamic subversion repos via subdomains (in Apache)

青春壹個敷衍的年華 提交于 2019-12-03 05:04:05
I'm trying to set up a subdomain-to-repository translation in Apache. Example: foobars.domain.com -> /server/svnrepos/foobars I've tried to get this done with mod_rewrite : RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.domain\.com$ [NC] RewriteRule ^/svn(.*) /svn/%2$1 [PT] However, this causes problems with basic svn operations; 'checkout' causes this pretty thing: $ svn co http://foobars.domain.com/svn svn: '/svn/foobars/!svn/vcc/default' path not found I don't have any limitations in terms of server setup (my machines, os, etc). Is there any way

Weird Apache2.2 SVN error, “Expected repository format '3' or '5'; found format '9'”

本小妞迷上赌 提交于 2019-12-01 23:22:06
问题 I've had a repo that I would access, using TortoiseSVN, from only the same computer on which the Subversion win32 service was running, and it's been working for a while now. I decided to try to set up mod_dav_svn to be able to get at it from elsewhere. When I try to access it, I get this error in the browser: <D:error> <C:error/> <m:human-readable errcode="165005"> Could not open the requested SVN filesystem </m:human-readable> </D:error> ...and these errors in the log: (20014)Internal error:

How to programmatically build an APR1-MD5 using PHP

时光怂恿深爱的人放手 提交于 2019-11-30 10:10:38
Much like this question I want to generate an htpasswd file entry from PHP. However it needs to be the APR1 (Apache) style, as mentioned in the original answer (The answer did not show how to implement the APR1 style), to work with mod_dav_svn. I can't seem to find a working implementation that will create the password. I found this (I forget where now): function crypt_apr1_md5($plainpasswd) { $salt = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz0123456789"), 0, 8); $len = strlen($plainpasswd); $text = $plainpasswd.'$apr1$'.$salt; $bin = pack("H32", md5($plainpasswd.$salt.$plainpasswd)); for(

How to programmatically build an APR1-MD5 using PHP

 ̄綄美尐妖づ 提交于 2019-11-29 15:30:14
问题 Much like this question I want to generate an htpasswd file entry from PHP. However it needs to be the APR1 (Apache) style, as mentioned in the original answer (The answer did not show how to implement the APR1 style), to work with mod_dav_svn. I can't seem to find a working implementation that will create the password. I found this (I forget where now): function crypt_apr1_md5($plainpasswd) { $salt = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz0123456789"), 0, 8); $len = strlen(

How do I list all repositories with the SVNParentPath directive on Apache+SVN?

不羁岁月 提交于 2019-11-28 10:49:07
I'm using SVN through Apache with dav_svn_module like this: <Location /svn> DAV svn SVNParentPath C:/svn_repository AuthName "Subversion Repository" ... </Location> This lets me access my repos: C:/svn_repository/repo1 C:/svn_repository/repo2 C:/svn_repository/repo3 via these URLs: https://examples.com/svn/repo1 https://examples.com/svn/repo2 https://examples.com/svn/repo3 Those URLs work great. When I go to just /svn (no repo name), I get a 403/forbidden response. What I'd like to see if a list of repos. Is that possible? Add this line SVNListParentPath on right under the SVNParentPath.