c# - CloudfrontGet cloudfront URL instead of Orgin URL -


i have domain using cloudfront in aws.

+ test1.cloudfront.com(distribution) google.com(origin) 

on browser, type

"test1.cloudfront.com" 

on controller,i declare

var url = httpcontext.current.request.url.host; //result: url = "google.com"; //origin url 

how cloudfront url instead of origin url? pls me!

upon creation of amazon cloudfront distribution, unique domain name assigned: enter image description here

use domain name access service via cloudfront.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -