# Marvel behind Nginx and https

**URL:** <https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15449>\
**Category:** Elasticsearch\
**Created:** [January 28, 2014, 3:42pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15449 "2014-01-28T15:42:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Schulz](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@J\_Schulz](https://discuss.elastic.co/u/J_Schulz)\
**Post date:** [January 28, 2014, 3:42pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15449/1 "2014-01-28T15:42:52Z")

</div>

Hi,

I have Nginx configured as reverse proxy to access elasticsearch over https

- auth basic. As example

Unfortunately Marvel tries to connect to [http://hostname/](http://hostname/).

The affected code line is in  
/usr/share/elasticsearch/plugins/marvel/\_site/kibana/config.js

elasticsearch: "https://"+window.location.hostname+(window.location.port  
!== '' ? ':'+window.location.port : ''),

should be

elasticsearch:  
window.location.protocol+"//"+window.location.hostname+(window.location.port  
!== '' ? ':'+window.location.port : '')

Cheers,  
Jonny

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b8f2d612-871c-43bc-aaf6-4a27bbd43d41%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8f2d612-871c-43bc-aaf6-4a27bbd43d41%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:54am UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15449/2 "2017-07-06T01:54:22Z")

</div>


