rmillwood
(Richard Millwood)
1
I have been setting up a server using Docker and Caddy for reverse proxy and two instances of Plone, one with two sites, the other with just one site.
I have made great progress, but got stuck on the failure of js and css files - see picture from Firefox Web Developer Tools/Network:
I have looked, but find very little to help about this and would appreciate any advice.
rmillwood
(Richard Millwood)
2
I am pleased to say I resolved this issue by adding ‘www’ in to the rewrite line in the definition in the Caddy file - here is the working defintion:
core-ed.org.uk`` ``www.core-ed.org.uk`` {
@core path_regexp ^/(.*)$
handle @core {
rewrite @core /VirtualHostBase/https/www.core-ed.org.uk:443/core/VirtualHostRoot/{re.core.1}
reverse_proxy core_plone:8080
}
}
Before I added ‘www’, the incorrect line read:
rewrite @core /VirtualHostBase/https/core-ed.org.uk:443/core/VirtualHostRoot/{re.core.1}
I have found it very difficult to find documentation that helped me to end up with this result!
1 Like