What settings are required to install AWS CloudFront CDN in front of the website?

I was unable to get AWS CloudFront to work with SquareSpace. Problems with forms that are not submitted and the website indicated on the website has expired. What are the settings required for CloudFront to work with Squarespace?

+4
source share
2 answers

This is definitely doable, given that I just asked it. Let me share the settings that I used in Cloudfront, Squarespace and Route53 to make it work. If you want to use a different DNS server than AWS Route53, you can adapt these settings. Keep in mind that this is not an e-commerce site, but a standard site with a block , static pages and forms . Most likely, you can adapt these instructions to other problems if they arise.

Cloudfront (CDN)


To do this, you need to create a Cloud Distribution for the Web .

Source Settings

  • ext-cust.squarespace.com. Squarespace .
  • .
  • - , , , .
  • .

/

  • .
  • ​​ HTTP HTTPS. , HTTP HTTPS. , , HTTP- HTTPS. : HTTPS HTTP, ( , ).
  • HTTP GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE. , ( , , ) HTTP POST.
  • HTTP GET, HEAD. .
  • . , , , , "".
  • , TTL, TTL TTL .
  • cookie - . . , Squarespace , . cookie: JSESSIONID, SS_MID, crumb, ss_cid, ss_cpvisit, ss_cvisit, test. .

  • : True, Squarespace API , .

  • Smooth Streaming, , , , -.

/

  • AWS WAF Web ACL .
  • www, . example.com, www.example.com.
  • SSL, , , IAM, , ( ), SSL , . , SSL HTTPS . , HTTPS.
  • .

53 (DNS)


  • Hosted Zone ( Route 53).
  • A, Cloudfront.
  • CNAME www, Cloudfront, ( Squarespace www)

Squarespace


Squarespace Settings->Domains->Connect a Third-Party Domain. . WWW, , www.example.com , example.com. , . DNS - CNAME, verify.squarespace.com. CNAME DNS 53 DNS-. , , , .

Cloudfront, Squarespace! , - DNS , , , ( ) .


, cookie, Chrome Inspector, , cookie Cookie . Cloudfront , Cookie , ( , , cookie). , , ( Cookie , , my_cookie=somevalue;other_cookie=othervaluemy_cookie other_cookie : ).

, . , - , , .

, cookie, Squarespace. ( ), / cookie, . , .

, !

+10

CloudFront Squarespace!

:

  • HTTP. , : GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE. :
  • : "". squarespace , , "- " .

:

  • : ext-cust.squarespace.com

  • HTTPS, CDN .

  • (CNAME) www, www- , Squarespace , www root (.eg example.com www.example.com) SSL CloudFront

  • HTTPS HTTPS, , Squarespace

</" >

:

  • : , , ...

</" >

Route53

www root (, example.com www.example.com) CloudFront

0

All Articles