Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Wednesday, April 23rd, 2008 at 4:43:05am UTC 

  1. I am receiving errors when I try to import files into a repository.
  2.  
  3. svn import svn.test https://www.grstaff.net:8500/svn/svn.test -m "test import"
  4. [authenticate]
  5. svn: MKACTIVITY of '/svn/svn.test/!svn/act/0bdd7457-16e0-413b-839e-c2e306b9b2aa': 403 Forbidden (https://www.grstaff.net:8500)
  6.  
  7. svn import svn.test https://www.grstaff.net:8500/svn/svn.test -m "test import"
  8. [use wrong password]
  9. svn: PROPFIND request failed on '/svn/svn.test'
  10. svn: PROPFIND of '/svn/svn.test': authorization failed (https://www.grstaff.net:8500)
  11.  
  12.  
  13. ls -al /var/
  14. drwxrwsr-x  4 www-data www-data 4096 2008-04-18 11:06 svn
  15.  
  16. ls -al /var/svn/
  17. drwxrwsr-x  7 www-data www-data 4096 2008-04-18 11:06 svn.test
  18. drwxrwsr-x  7 www-data www-data 4096 2008-04-18 10:21 test
  19.  
  20.  
  21.  
  22.  
  23. httpd.conf
  24. ServerRoot "/etc/apache2"
  25.  
  26. LockFile /var/lock/apache2/accept.lock
  27.  
  28.  
  29. #
  30. # PidFile: The file in which the server should record its process
  31. # identification number when it starts.
  32. #
  33. PidFile /var/run/apache2.pid
  34.  
  35. #
  36. # Timeout: The number of seconds before receives and sends time out.
  37. #
  38. Timeout 300
  39.  
  40. #
  41. # KeepAlive: Whether or not to allow persistent connections (more than
  42. # one request per connection). Set to "Off" to deactivate.
  43. #
  44. KeepAlive On
  45.  
  46. #
  47. # MaxKeepAliveRequests: The maximum number of requests to allow
  48. # during a persistent connection. Set to 0 to allow an unlimited amount.
  49. # We recommend you leave this number high, for maximum performance.
  50. #
  51. MaxKeepAliveRequests 100
  52.  
  53. #
  54. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  55. # same client on the same connection.
  56. #
  57. KeepAliveTimeout 15
  58.  
  59. ##
  60. ## Server-Pool Size Regulation (MPM specific)
  61. ##
  62.  
  63. # prefork MPM
  64. # StartServers: number of server processes to start
  65. # MinSpareServers: minimum number of server processes which are kept spare
  66. # MaxSpareServers: maximum number of server processes which are kept spare
  67. # MaxClients: maximum number of server processes allowed to start
  68. # MaxRequestsPerChild: maximum number of requests a server process serves
  69. <IfModule mpm_prefork_module>
  70.     StartServers          5
  71.     MinSpareServers       5
  72.     MaxSpareServers      10
  73.     MaxClients          150
  74.     MaxRequestsPerChild   0
  75. </IfModule>
  76.  
  77. # worker MPM
  78. # StartServers: initial number of server processes to start
  79. # MaxClients: maximum number of simultaneous client connections
  80. # MinSpareThreads: minimum number of worker threads which are kept spare
  81. # MaxSpareThreads: maximum number of worker threads which are kept spare
  82. # ThreadsPerChild: constant number of worker threads in each server process
  83. # MaxRequestsPerChild: maximum number of requests a server process serves
  84. <IfModule mpm_worker_module>
  85.     StartServers          2
  86.     MaxClients          150
  87.     MinSpareThreads      25
  88.     MaxSpareThreads      75
  89.     ThreadsPerChild      25
  90.     MaxRequestsPerChild   0
  91. </IfModule>
  92.  
  93. User www-data
  94. Group www-data
  95.  
  96. #
  97. # AccessFileName: The name of the file to look for in each directory
  98. # for additional configuration directives.  See also the AllowOverride
  99. # directive.
  100. #
  101.  
  102. AccessFileName .htaccess
  103.  
  104. #
  105. # The following lines prevent .htaccess and .htpasswd files from being
  106. # viewed by Web clients.
  107. #
  108. <Files ~ "^\.ht">
  109.     Order allow,deny
  110.     Deny from all
  111. </Files>
  112.  
  113. #
  114. # DefaultType is the default MIME type the server will use for a document
  115. # if it cannot otherwise determine one, such as from filename extensions.
  116. # If your server contains mostly text or HTML documents, "text/plain" is
  117. # a good value.  If most of your content is binary, such as applications
  118. # or images, you may want to use "application/octet-stream" instead to
  119. # keep browsers from trying to display binary files as though they are
  120. # text.
  121. #
  122. DefaultType text/plain
  123.  
  124.  
  125. #
  126. # HostnameLookups: Log the names of clients or just their IP addresses
  127. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  128. # The default is off because it'd be overall better for the net if people
  129. # had to knowingly turn this feature on, since enabling it means that
  130. # each client request will result in AT LEAST one lookup request to the
  131. # nameserver.
  132. #
  133. HostnameLookups Off
  134.  
  135. # ErrorLog: The location of the error log file.
  136. # If you do not specify an ErrorLog directive within a <VirtualHost>
  137. # container, error messages relating to that virtual host will be
  138. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  139. # container, that host's errors will be logged there and not here.
  140. #
  141. ErrorLog /var/log/apache2/error.log
  142.  
  143. #
  144. # LogLevel: Control the number of messages logged to the error_log.
  145. # Possible values include: debug, info, notice, warn, error, crit,
  146. # alert, emerg.
  147. #
  148. LogLevel warn
  149.  
  150. # Include module configuration:
  151. Include /etc/apache2/mods-enabled/*.load
  152. Include /etc/apache2/mods-enabled/*.conf
  153.  
  154. # Include all the user configurations:
  155. Include /etc/apache2/httpd.conf
  156.  
  157. # Include ports listing
  158. Include /etc/apache2/ports.conf
  159.  
  160. #
  161. # The following directives define some format nicknames for use with
  162. # a CustomLog directive (see below).
  163. #
  164. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  165. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  166. LogFormat "%{Referer}i -> %U" referer
  167. LogFormat "%{User-agent}i" agent
  168.  
  169. #
  170. # ServerTokens
  171. # This directive configures what you return as the Server HTTP response
  172. # Header. The default is 'Full' which sends information about the OS-Type
  173. # and compiled in modules.
  174. # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  175. # where Full conveys the most information, and Prod the least.
  176. #
  177. ServerTokens Full
  178.  
  179. #
  180. # Optionally add a line containing the server version and virtual host
  181. # name to server-generated pages (internal error documents, FTP directory
  182. # listings, mod_status and mod_info output etc., but not CGI generated
  183. # documents or custom error documents).
  184. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  185. # Set to one of:  On | Off | EMail
  186. #
  187. ServerSignature On
  188.  
  189.  
  190.  
  191. #
  192. # Customizable error responses come in three flavors:
  193. # 1) plain text 2) local redirects 3) external redirects
  194. #
  195. # Some examples:
  196. #ErrorDocument 500 "The server made a boo boo."
  197. #ErrorDocument 404 /missing.html
  198. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  199. #ErrorDocument 402 http://www.example.com/subscription_info.html
  200. #
  201.  
  202. #
  203. # Putting this all together, we can internationalize error responses.
  204. #
  205. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  206. # our collection of by-error message multi-language collections.  We use
  207. # includes to substitute the appropriate text.
  208. #
  209. # You can modify the messages' appearance without changing any of the
  210. # default HTTP_<error>.html.var files by adding the line:
  211. #
  212. #   Alias /error/include/ "/your/include/path/"
  213. #
  214. # which allows you to create your own set of files by starting with the
  215. # /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
  216. # even on a per-VirtualHost basis.  The default include files will display
  217. # your Apache version number and your ServerAdmin email address regardless
  218. # of the setting of ServerSignature.
  219. #
  220. # The internationalized error documents require mod_alias, mod_include
  221. # and mod_negotiation.  To activate them, uncomment the following 30 lines.
  222.  
  223. #    Alias /error/ "/usr/share/apache2/error/"
  224. #
  225. #    <Directory "/usr/share/apache2/error">
  226. #        AllowOverride None
  227. #        Options IncludesNoExec
  228. #        AddOutputFilter Includes html
  229. #        AddHandler type-map var
  230. #        Order allow,deny
  231. #        Allow from all
  232. #        LanguagePriority en cs de es fr it nl sv pt-br ro
  233. #        ForceLanguagePriority Prefer Fallback
  234. #    </Directory>
  235. #
  236. #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  237. #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  238. #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  239. #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  240. #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  241. #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  242. #    ErrorDocument 410 /error/HTTP_GONE.html.var
  243. #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  244. #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  245. #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  246. #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  247. #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  248. #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  249. #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  250. #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  251. #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  252. #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  253.  
  254.  
  255.  
  256. # Include of directories ignores editors' and dpkg's backup files,
  257. # see README.Debian for details.
  258.  
  259. # Include generic snippets of statements
  260. Include /etc/apache2/conf.d/
  261.  
  262. # Include the virtual host configurations:
  263. Include /etc/apache2/sites-enabled/
  264.  
  265. [END]
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276. cat /etc/apache2/sites-enabled/svn.test
  277.  
  278. <VirtualHost 10.10.0.115:443>
  279.         ServerAdmin [email protected]
  280.         ServerName grstaff.net
  281.         ServerAlias svn.grstaff.net
  282.         DocumentRoot /var/www/svn.test/
  283.  
  284.         SSLEngine on
  285. #       SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
  286.         SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  287.         SSLCertificateFile /etc/ssl/certs/svn.crt
  288.         SSLCertificateKeyFile /etc/ssl/private/svn.key
  289.  
  290.  
  291.  
  292.         <Directory />
  293.                 Options FollowSymLinks
  294.                 AllowOverride None
  295.         </Directory>
  296.         <Directory /var/www/svn.test/>
  297.                 Options Indexes FollowSymLinks MultiViews
  298.                 AllowOverride None
  299.                 Order allow,deny
  300.                 allow from all
  301.                 # This directive allows us to have apache2's default start page
  302.                 # in /apache2-default/, but still have / go to the right place
  303.                 #RedirectMatch ^/$ /apache2-default/
  304.         </Directory>
  305.  
  306.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  307.         <Directory "/usr/lib/cgi-bin">
  308.                 AllowOverride None
  309.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  310.                 Order allow,deny
  311.                 Allow from all
  312.         </Directory>
  313.  
  314.         ErrorLog /var/log/apache2/error.log
  315.  
  316.         # Possible values include: debug, info, notice, warn, error, crit,
  317.         # alert, emerg.
  318.         LogLevel warn
  319.  
  320.         CustomLog /var/log/apache2/access.log combined
  321.         ServerSignature On
  322.  
  323.     Alias /doc/ "/usr/share/doc/"
  324.     <Directory "/usr/share/doc/">
  325.         Options Indexes MultiViews FollowSymLinks
  326.         AllowOverride None
  327.         Order deny,allow
  328.         Deny from all
  329.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  330.     </Directory>
  331.  
  332.         <Directory /var/svn>
  333.          Allow from all
  334.         </Directory>
  335.  
  336. <Location /svn>
  337. DAV svn
  338. SVNParentPath /var/svn
  339. AuthType Basic
  340. AuthName "Subversion Repository"
  341. AuthUserFile /etc/apache2/dav_svn.passwd
  342. #AuthzSVNAccessFile /etc/apache2/dav_svn.authz
  343. Require valid-user
  344. SSLRequireSSL
  345. Allow from all
  346. </Location>
  347.  
  348. </VirtualHost>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right