# Nginx proxy can not start

**URL:** <https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845>\
**Category:** Kibana\
**Created:** [July 18, 2015, 10:00am UTC](https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845 "2015-07-18T10:00:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trungmv](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@trungmv](https://discuss.elastic.co/u/trungmv)\
**Post date:** [July 18, 2015, 10:00am UTC](https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845/1 "2015-07-18T10:00:42Z")

</div>

Hello,

I just created kibana.conf on /etc/nginx/conf.d as recommended with content below:

> server {  
> listen 80;

> ```
> server_name localhost;
> 
> ```

> ```
> auth_basic "Restricted Access";
> auth_basic_user_file /etc/nginx/htpasswd.users;
> 
> ```

> ```
> location / {
> proxy_pass http://localhost:5601;
> proxy_http_version 1.1;
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection 'upgrade';
> proxy_set_header Host $host;
> proxy_cache_bypass $http_upgrade;
> }
> }
> 
> ```

But i cannot start nginx as expected.  
It's appeared error:

> service nginx restart  
> nginx: [emerg] unknown directive "proxy\_http\_version" in /etc/nginx/conf.d/kibana.conf:11  
> nginx: configuration file /etc/nginx/nginx.conf test failed

While i used CentOS 6.6 final, logstash:1.5.2, elasticsearch: 1.7.0, Kibana 4.1.1

Any help is very appreciated,

Regards,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 18, 2015, 10:39am UTC](https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845/2 "2015-07-18T10:39:31Z")

</div>

It's not really something we directly support, but see if any of these results help [https://duckduckgo.com/?q=unknown+directive+"proxy\_http\_version"](https://duckduckgo.com/?q=unknown+directive+%22proxy_http_version%22)

---

<div class="post-metadata">

**Author:** ![trungmv](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@trungmv](https://discuss.elastic.co/u/trungmv)\
**Post date:** [July 20, 2015, 1:31am UTC](https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845/3 "2015-07-20T01:31:48Z")

</div>

Hello,

I found the solution by installed nginx version higher than version on kibana config file.

Thanks and regards,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:16pm UTC](https://discuss.elastic.co/t/nginx-proxy-can-not-start/25845/4 "2017-07-06T14:16:13Z")

</div>

Closed on July 6, 2017, 2:16pm UTC


