relative_url_root

relative_url_root

The variable relative_url_root specifies the location on the server where the application is installed (e. g. /startkladde). This is required to create links and redirects within the application (including links to images and style sheets).

relative_url_root can be set from different sources:

  • automatically (with Apache only), code in config/initializers/fix_relative_url_root.rb
  • manually in local_environment.rb (configuration of the application)
  • manually in HTTP_X_RAILS_RELATIVE_URL_ROOT (configuration of the web server), code in app/controllers/application_controller.rb:set_relative_url_root

Related

Wiki: Home