# Gatling and SNI

**URL:** https://community.gatling.io/t/gatling-and-sni/525
**Category:** Gatling (Open-Source)
**Created:** [August 2, 2013, 10:37am UTC](https://community.gatling.io/t/gatling-and-sni/525 "2013-08-02T10:37:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Carlos\_Fraga](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Carlos\_Fraga](https://community.gatling.io/u/Carlos_Fraga)
#### Post date: [August 2, 2013, 10:37am UTC](https://community.gatling.io/t/gatling-and-sni/525/1 "2013-08-02T10:37:09Z")

</div>

Recently i had an issue using Gatling with an apache server.  
I found out that it had to do with having SNI (Server name indication) strict mode on in Apache, which means that if a client does not support it, Apache will return a 403 Forbidden error for any request made.  
I believe this is probably a configuration on netty, but my knowledge of scala is near zero (at least for now).  
I solved this problem by temporarily disabling that configuration on Apache, but i was wondering if anyone else had the same problem?

Is there anything i can do on Gatling to enable SNI (in case i dont have config access to a server i want to load test)?

---

<div class="post-metadata">

### Author: ![Carlos\_Fraga](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Carlos\_Fraga](https://community.gatling.io/u/Carlos_Fraga)
#### Post date: [August 2, 2013, 10:37am UTC](https://community.gatling.io/t/gatling-and-sni/525/2 "2013-08-02T10:37:52Z")

</div>

I forgot to mention that this was on Gatling 2.0.0

---

<div class="post-metadata">

### Author: ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)
#### Post date: [August 2, 2013, 10:48am UTC](https://community.gatling.io/t/gatling-and-sni/525/3 "2013-08-02T10:48:41Z")

</div>

Have you tried configuring a virtualHost on the HttpProtocol?  
http.  
…  
.virtualHost(“theHost”)
