Advertisement
Guest User

Untitled

a guest
Jun 8th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. PerlLoadModule Apache::Redmine
  2.  
  3. <VirtualHost *:80>
  4. ServerName beast
  5.  
  6. DocumentRoot /var/www/redmine/public
  7.  
  8. ServerAdmin info@midpoint.lt
  9. LogLevel warn
  10. ErrorLog /var/log/apache2/redmine_error
  11. CustomLog /var/log/apache2/redmine_access combined
  12.  
  13. <Directory /var/www/redmine/public>
  14. Options Indexes FollowSymLinks MultiViews
  15. AllowOverride None
  16. Order allow,deny
  17. allow from all
  18. </Directory>
  19.  
  20. <Directory "/var/www/grack/public">
  21. Options None
  22. AllowOverride None
  23. Order allow,deny
  24. Allow from all
  25. </Directory>
  26.  
  27. Alias /git /var/www/grack/public
  28.  
  29. </VirtualHost>
  30.  
  31. <Location /svn>
  32. DAV svn
  33. SVNParentPath "/srv/svn"
  34. Order deny,allow
  35. Deny from all
  36. Satisfy any
  37.  
  38. PerlAccessHandler Apache::Authn::Redmine::access_handler
  39. PerlAuthenHandler Apache::Authn::Redmine::authen_handler
  40. AuthType Basic
  41. AuthName "Redmine SVN Repository"
  42.  
  43. #read-only access
  44. <Limit GET PROPFIND OPTIONS REPORT>
  45. Require valid-user
  46. # Allow from redmine.server.ip
  47. # Allow from another-ip
  48. # Satisfy any
  49. </Limit>
  50. # write access
  51. <LimitExcept GET PROPFIND OPTIONS REPORT>
  52. Require valid-user
  53. </LimitExcept>
  54.  
  55. ## for mysql
  56. RedmineDSN "DBI:mysql:database=redmine;host=localhost"
  57. ## for postgres
  58. # RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server"
  59. ## for SQLite3
  60. # RedmineDSN "DBI:SQLite:dbname=database.db"
  61.  
  62. RedmineDbUser "redmine"
  63. RedmineDbPass "*"
  64. </Location>
  65.  
  66. <Location "/git">
  67. PassengerAppRoot /var/www/grack
  68.  
  69. # AuthType Basic
  70. # AuthName "Redmine git repositories"
  71. # Require valid-user
  72.  
  73. # PerlAccessHandler Apache::Authn::Redmine::access_handler
  74. # PerlAuthenHandler Apache::Authn::Redmine::authen_handler
  75.  
  76. ## for mysql
  77. RedmineDSN "DBI:mysql:database=redmine;host=localhost"
  78. ## for postgres
  79. # RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server"
  80. ## for SQLite3
  81. # RedmineDSN "DBI:SQLite:dbname=database.db"
  82.  
  83. RedmineDbUser "redmine"
  84. RedmineDbPass "*"
  85. RedmineGitSmartHttp yes
  86. </Location>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement