I have the following setup:
(panel server: localhost:5006) <-----> (apache reverseproxy: *:80) <------> (clients)
and I just added two panel components that don’t show up in the browser, even though they work fine when looking at the panel page on localhost:5006
directly.
- LoadingSpinner: doesn’t show up at all
- Alert: the text shows up, but not the background and box
Do they need an extra ProxyPass entry or something similar?
This is my apache conf:
ProxyPreserveHost On
ProxyPass /myapp/ws ws://localhost:5006/ws
ProxyPassReverse /myapp/ws ws://localhost:5006/ws
ProxyPass /myapp/ http://localhost:5006/
ProxyPassReverse /myapp/ http://localhost:5006/
Redirect /myapp https://myserver/myapp/
edit:
In my browser I get
GEThttps://myserver/static/extensions/panel/css/alerts.css
[HTTP/1.1 404 Not Found 12ms]GEThttps://myserver/static/extensions/panel/css/widgets.css
[HTTP/1.1 404 Not Found 45ms]
It should probably look at https://myserver/myapp/static
, so somewhere the root url is wrongly set.
edit2:
I can make it work by adding this to the apache conf:
Redirect /static http://myserver/myapp/static
But I think it should be possible to tell panel about the root url.