{"id":223,"date":"2015-02-16T21:10:12","date_gmt":"2015-02-16T20:10:12","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=223"},"modified":"2015-02-16T14:20:12","modified_gmt":"2015-02-16T13:20:12","slug":"centos-redmine","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/centos-redmine\/","title":{"rendered":"CentOS redmine"},"content":{"rendered":"<p>Today I started a demo with redmine. I had some difficulties with running it from a subdirectory within a nginx instance. For the installation I followed the steps provided in <a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" title=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" target=\"_blank\">http:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a>. Below are the additional steps to run redmine from a subdirectory using nginx:<\/p>\n<pre class=\"lang:default decode:true \" title=\"redmine, nginx with a subdirectory\" >vi redmine-2.6.1\/config.ru\r\n\r\n#replace line:\r\nrun RedmineApp::Application\r\n#with block:\r\nmap \"\/redmine\" do\r\n  run RedmineApp::Application\r\nend\r\n\r\nvi redmine-2.6.1\/config\/environment.rb\r\n#add following two lines at the bottom of the file:\r\nRedmine::Utils::relative_url_root = \"\/redmine\"\r\nActionController::Base.relative_url_root = \"\/redmine\"\r\n\r\nvi \/etc\/nginx\/nginx.conf\r\n#add following location block:\r\n\r\n        location \/redmine\/ {\r\n                proxy_pass              http:\/\/192.168.0.6:3000\/redmine\/;\r\n                proxy_redirect          default;\r\n        }\r\n\r\n<\/pre>\n<p>That&#8217;s it, now start redmine using: ruby script\/rails s -e production -d<br \/>\nAnd don&#8217;t forget to reload nginx.<\/p>\n<p>Now access your redmine instance at http(s):\/\/host\/redmine<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I started a demo with redmine. I had some difficulties with running it from a subdirectory within a nginx instance. For the installation I followed the steps provided in http:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall. Below are the additional steps to run redmine from a subdirectory using nginx: vi redmine-2.6.1\/config.ru #replace line: run RedmineApp::Application #with block: map &#8220;\/redmine&#8221; do &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/tutorial\/centos-redmine\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[5,11],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/223"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":3,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}