修改redmine默认安装访问的URL(/redmine)

本文指导如何从红矿安装目录中删除指定配置项,替换Apache虚拟主机配置以阻止访问.svn目录,并最终重启Redmine堆栈。
1. Remove the “prefix=/redmine” entry from your <installdir>/apps/redmine/config/mongrel_cluster.yml.

2. Replace the <installdir>/apps/redmine/conf/redmine.conf file for this one:

<VirtualHost *:8080>
ServerAdmin info @ example.com
ServerName www. example. com
ServerAlias example.com
ErrorLog "logs/rubystack_apache_error_log"
CustomLog "logs/rubystack_apache_access_log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://rubystackcluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>

<Proxy balancer://rubystackcluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
</Proxy>


3. Restart your Redmine Stack: <installdir>/ctlscript.sh restart

注意: Windows环境下,第2步:Edit <installdir>/apps/redmine/scripts/serviceinstall.bat and remove the prefix entry " —prefix /redmine"
config.gem "acts-as-taggable-on", :version => '2.0.4' require 'redmine' Redmine::Plugin.register :redmine_simple_kanban do name 'Redmine Simple Kanban plugin' author 'Eric Davis' description 'Simple implementation of a Kanban Board for use with Redmine to track tasks.' url 'https://projects.littlestreamsoftware.com/projects/simple-kanban' author_url 'http://www.littlestreamsoftware.com' version '0.1.0' requires_redmine :version_or_higher => '0.9.0' settings(:partial => 'settings/simple_kanban_settings', :default => { 'target_project' => nil, 'backlog_swimlane' => { 'status_id' => nil}, 'next_swimlane' => { 'status_id' => nil}, 'in_progress_swimlane' => { 'status_id' => nil}, 'acceptance_swimlane' => { 'status_id' => nil}, 'done_swimlane' => { 'status_id' => nil} }) menu(:top_menu, :simple_kanban, {:controller => 'simple_kanbans', :action => 'show'}, :caption => :simple_kanban_title, :if => Proc.new { User.current.allowed_to?(:use_kanban, nil, :global => true) }) permission(:use_kanban, {:simple_kanbans => [:show, :take_issue, :new_issue]}) end require 'redmine_simple_kanban/hooks/view_issues_form_details_bottom_hook' require 'redmine_simple_kanban/hooks/controller_issues_edit_before_save_hook' require 'redmine_simple_kanban/hooks/view_issues_show_details_bottom_hook' require 'redmine_simple_kanban/hooks/view_issues_show_description_bottom_hook' require 'redmine_simple_kanban/hooks/view_account_left_bottom_hook' require 'redmine_simple_kanban/hooks/view_users_form_hook' require 'dispatcher' Dispatcher.to_prepare :redmine_simple_kanban do require_dependency 'principal' Principal.send(:include, RedmineSimpleKanban::Patches::PrincipalPatch) require_dependency 'user' User.send(:include, RedmineSimpleKanban::Patches::UserPatch) AnonymousUser.send(:include, RedmineSimpleKanban::Patches::UserPatch) require_dependency 'issue' Issue.send(:include, RedmineSimpleKanban::Patches::IssuePatch) end 改成rails 6 语法
09-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值