Liferay with AWS Cloud front

Jamie Sammons, modified 4 Years ago. New Member Posts: 5 Join Date: 1/28/21 Recent Posts


Hi ,

We have a deployment in AWS as below

external website >  cloudfront >  load balancer > Liferay Instances 

Can anyone share the configuration that should be put in liferay so  that we have cloudsfront in front . We have set the following in portal-ext.properties 

cdn.dynamic.resources.enabled=true
cdn.host.https=https://something.cloudfront.net

Since  we have a DNS in front we have give the below configuration also 

web.server.http.port=80
web.server.host=my.host.net
web.server.protocol=https

Nothing seems to be taken from cloudfront . All of them go  to server .

The Domain Name is my.host.net .In DNS hosting provider (go daddy)  we put a CNAME  to cloud front url which is say ddhsssssadsasdsfd.
In cloudfront distribution  we put the Origin domain  as Load balancer  . The loadbalancer route the traffic to liferay instances A and B

 

Please help 

Thanks