---
title: server.hostname
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/variables/server/server-hostname
---

**Type:** STRING  
**Access:** read-only

**Available in:** 

Hostname of the cache server.  Hostnames follow two possible patterns:

- `cache-{siteID}{nodeID}`, e.g. `cache-jfk1034`
- `cache-{POP}-{siteID}{nodeID}`, e.g. `cache-iad-kiad7000001`

A [POP](https://www.fastly.com/documentation/reference/glossary/#term-point-of-presence) is a single pool of cache storage shared by many [cache servers](https://www.fastly.com/documentation/reference/glossary/#term-cache-server).  A [site](https://www.fastly.com/documentation/reference/glossary/#term-site) is a physical facility housing servers.  [Learn more about POPs and sites](https://www.fastly.com/documentation/guides/concepts/pop).

Sites and POPs have historically shared a namespace, but newer generation sites have 4-character IDs, while POP IDs are always 3 characters.

> **HINT:** `server.pop` is a better source for the POP identifier.
