sibprogrammer / owp

OpenVZ Web Panel
http://owp.softunity.com.ru/
Other
296 stars 106 forks source link

Absolute URLs #59

Closed javacraft closed 9 years ago

javacraft commented 9 years ago

Great application! Unfortunately, the use of absolute URLs (e.g. /ext/resources/css...) does not make this an easy webapp to put behind a reverse proxy. Certainly there are workarounds such as mode_proxy_html, though sad to have to use it on a modern day application.

No promises, but I will try to tweak it myself once I have more time to reconsider this webapp.

javacraft commented 9 years ago

nvm, been a while since I dabbled with RoR. I found base_url in config/initializers/app_config.rb. Setting it to the public URL seems to work. For example, if https://control.example.com/ovzpanel proxies OWP, then setting base_url to the same fixes broken links. Apologies for the bother :)