how to get complete request url or hostname in vcl?
Hi Team,
if I am opening a page.https://www.domain.com/abc/ . I want to know this complete url in vcl.
If somehow i can www.domain.com that is also fine .
-
Hello Ravi,
req.http.host should contain "www.domain.com".
Also, you can construct a complete URL using the following variables.- req.protocol
- req.http.host
- req.url
Please sign in to leave a comment.
Comments
1 comment