---
title: Use regionally distributed origin servers
summary: If you have multiple hosting locations, Fastly can route traffic to the closest one.
url: https://www.fastly.com/documentation/solutions/examples/use-regionally-distributed-origin-servers
---

If you have multiple hosting locations, Fastly can route traffic to the closest one.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/0d702db6)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/4b59bf07)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/091c4efb)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/4fda7f60)

