Bug #20313
closedKatello can't use relocated URI
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/
Updated by Justin Sherrill over 7 years ago
- Category set to Web UI
- Translation missing: en.field_release set to 114
- Difficulty set to medium
Updated by Justin Sherrill over 7 years ago
- Assignee set to Walden Raines
- Target version set to 205
- Translation missing: en.field_release changed from 114 to 281
Updated by Walden Raines over 7 years ago
This is likely because these two lines don't make use of the rails root mentioned:
https://github.com/katello/katello/blob/master/config/routes/mount_engine.rb#L2-2
https://github.com/katello/bastion/blob/master/config/routes/mount_engine.rb#L2-2
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 281 to 286
Updated by Brad Buckingham over 7 years ago
- Target version changed from 205 to 208
Updated by Brad Buckingham over 7 years ago
- Assignee changed from Walden Raines to Jonathon Turel
Updated by The Foreman Bot over 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6920 added
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 286 to 250
Updated by Brad Buckingham over 7 years ago
- Target version changed from 208 to 213
Updated by Brad Buckingham over 7 years ago
- Target version changed from 213 to 217
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|db51fdacfc8ee414183552e03581da0e4175eec5.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello/pull/6974 added