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/