Bug #11052
openForeman style sheet is referencing urls beginning with /assets, but should be /foreman/assets.
Description
RHEL6 Foreman 1.8.2 server installed using the foreman provided rpms from yum.theforeman.org.
We have our foreman installed using the /foreman prefix, which I believe is the default, and we also have it proxied through a front-end proxy web-server and looking through the apache logs on the proxy server I recently noticed a lot of errors like this:
File does not exist: /var/www/html/assets, referer: https://[PROXY-HOST]/foreman/assets/application-3e22b7cb6ed94920431d045b570b45b1.css
It appears that the Foreman css contains a lot of references like url(/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100-1a84f396ed6cc5bdc44ae13e12c9413b.png), which cannot be retrieved since they should actually be referenced using the /foreman/assets path.
Updated by Marek Hulán over 9 years ago
Try setting RAILS_RELATIVE_URL_ROOT env variable to "/foreman", it might help. If there are some hardcoded paths in assets, they might need to be regenerated with this variable being set by "foreman-rake assets:precompile" but I'm afraid you won't have compiling dependencies installed and we don't package them.