Project

General

Profile

Bug #20313

Katello can't use relocated URI

Added by Robert Mattson about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Web UI
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:

Description

Katello Team,

After an IRC discussion. We don't seem to be able to relocate foreman from / to /foreman/ in apache because of constraints in Katello. See below for discussion.

rob101
yo sup. i've set RAILS_RELATIVE_URL_ROOT and katello pages seem to enter a reload-loop. 11:12 am
any thoughts? 11:12 am
please? 11:42 am
any ideas what might cause a reload-loop? 11:43 am
ehelmsrob101: where did you set this? 11:44 am
rob101 in a <Location> directive in httpd, under a vhost. 11:45 am
noting, other foreman pages seem fine. 11:45 am
ehelms rob101: I don't know that we are built to handle that 11:45 am
assume you are trying to set the URL root to not / ? 11:47 am
rob101 yes -> SetEnv RAILS_RELATIVE_URL_ROOT /foreman \n Alias /foreman /usr/share/foreman/public \n <Location "/foreman"> \n passengerBaseURI / \n PassengerAppRoot /usr/share/foreman 11:47 am
require all granted 11:47 am
</Location> 11:49 am
http://projects.theforeman.org/issues/3489 seems to indicate is works, #looking for other evidence... 11:51 am
I have a number of utilities on a maintainence page, all of which are in sub-URLs, i need to map foreman to a sub-directory and right now am using ProxyPass to map into the foreman vhost. 11:52 am
to have the html/css/assets map 1:1 i need to change the root uris on the foreman vhost... 11:52 am
it seems to be commonly done. 11:53 am
using katello 3.2.2-1 / foreman-1.13.4-1 11:55 am
ehelms rob101: I think that was before we had a single page application with angularjs for katello, and I am guessing thats why you hit page reloads

Continued https://botbot.me/freenode/theforeman/msg/88551237/

Associated revisions

Revision db51fdac (diff)
Added by Jonathon Turel almost 4 years ago

Fixes #20313 - support subdirectory deployment

Revision 5c30cb34 (diff)
Added by Jonathon Turel almost 4 years ago

Refs #20313 - do not reference foreman_url from bastion pages

Revision d45cc374 (diff)
Added by Jonathon Turel almost 4 years ago

Refs #20313: Fix broken tests

History

#1 Updated by Justin Sherrill about 4 years ago

  • Category set to Web UI
  • Legacy Backlogs Release (now unused) set to 114
  • Difficulty set to medium

#2 Updated by Justin Sherrill about 4 years ago

  • Assignee set to Walden Raines
  • Target version set to 205
  • Legacy Backlogs Release (now unused) changed from 114 to 281

#4 Updated by Eric Helms about 4 years ago

  • Legacy Backlogs Release (now unused) changed from 281 to 286

#5 Updated by Brad Buckingham about 4 years ago

  • Target version changed from 205 to 208

#6 Updated by Brad Buckingham about 4 years ago

  • Assignee changed from Walden Raines to Jonathon Turel

#7 Updated by Jonathon Turel about 4 years ago

  • Status changed from New to Assigned

#8 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6920 added

#9 Updated by Eric Helms about 4 years ago

  • Legacy Backlogs Release (now unused) changed from 286 to 250

#10 Updated by Brad Buckingham about 4 years ago

  • Target version changed from 208 to 213

#11 Updated by Brad Buckingham about 4 years ago

  • Target version changed from 213 to 217

#12 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#13 Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/Katello/katello/pull/6974 added

Also available in: Atom PDF