solibuilder.blogg.se

Rails unicorn https apache
Rails unicorn https apache










rails unicorn https apache

See Apache official documentation to adapt it.

rails unicorn https apache

If you have an Apache webserver in front of it (with mod_proxy enabled), or an Apache reverse proxy on another machine, you can run Redmine on a specific port and use this kind of config so it appears to be running in a subdirectory : Root :to => 'welcome#index', :as => 'home' Scope Redmine::Utils::relative_url_root do Try_files $uri/index.html $uri.html $uri = "/redmine" # so it can still be called off of the actually non-existing # ActionController::base.relative_url_root, # We provide a backwards compatible wrapper around the new # Fix for mongrel which still doesn't know about Rails 2.2's changes,

rails unicorn https apache

To fix this issue create a file config/initializers/patch_for_mongrel.rb : Mongrel_rails service "-prefix" directive does NOT work with Rails 2.3.x If you run Redmine under Mongrel server, you can alternatively use the "-prefix" option of Mongrel : In more recent versions of Rails the class hierarchy has changed slightly and you will need to useĪctionController::Base.relative_url_root = "/redmine"įor the class name. It can be considered as the simplest, cleanest and most flexible solution. Rails will then prefix all links with "/redmine". Using Rails features ¶Īdd the following line at the end of your config/environment.rb :ĪctionController::AbstractRequest.relative_url_root = "/redmine" Redmine::Utils::relative_url_root = "/redmine" Using Redmine::Utils (preferred solution) ¶Īdd the following line at the bottom of your config/environment.rb Working variant (Sun Jun 26 13:48:) ¶Ĭhange the following lines at the bottom of your config/environment.rb In this page, we assume you want to run Redmine under "/redmine/" subdirectory of your site.

#Rails unicorn https apache how to#

This page explains how to run Redmine in a subdirectory of your site, for instance in such a case, you can feel lost because the classic Redmine install does not work directly, and the links to css or javascript files seem to be broken. If using Docker official image, passenger variant.Using Passenger (aka mod_rails) features.Using Redmine::Utils (preferred solution).












Rails unicorn https apache