# Marvel behind Nginx and https

**URL:** <https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450>\
**Category:** Elasticsearch\
**Created:** [January 28, 2014, 3:45pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450 "2014-01-28T15:45:04Z")\
**Posts on this page:** 10\
**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:45pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/1 "2014-01-28T15:45:04Z")

</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: "http://"+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/c536426a-36a6-4a24-888c-95ff0a4d053f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c536426a-36a6-4a24-888c-95ff0a4d053f%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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 28, 2014, 3:51pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/2 "2014-01-28T15:51:39Z")

</div>

Marvel was just announced today (to me at least), and there already is a  
question/issue? 🙂 Let us know how it is working out.

I am assuming that the elasticsearch team has Marvel as a private repo,  
which means you can't post issues.

--  
Ivan

On Tue, Jan 28, 2014 at 7:45 AM, J. Schulz [js.bloonix@gmail.com](mailto:js.bloonix@gmail.com) wrote:

> 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: "http://"+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/c536426a-36a6-4a24-888c-95ff0a4d053f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c536426a-36a6-4a24-888c-95ff0a4d053f%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CALY%3DcQCmZM31%3DN6qa3XiLRCCm34M%2Bgq0Hn-qHth0jXPsEUg%3DSw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCmZM31%3DN6qa3XiLRCCm34M%2Bgq0Hn-qHth0jXPsEUg%3DSw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:54pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/3 "2014-01-28T15:54:22Z")

</div>

I know 😉

@kimchy where to report bugs? On  
[GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch) …?  
@bloonix for now, best place is the google group:  
[Redirecting to Google Groups](https://groups.google.com/forum/#!forum/elasticsearch) …

Am Dienstag, 28. Januar 2014 16:51:39 UTC+1 schrieb Ivan Brusic:

> Marvel was just announced today (to me at least), and there already is a  
> question/issue? 🙂 Let us know how it is working out.
> 
> I am assuming that the elasticsearch team has Marvel as a private repo,  
> which means you can't post issues.
> 
> --  
> Ivan
> 
> On Tue, Jan 28, 2014 at 7:45 AM, J. Schulz \<[js.bl...@gmail.com](mailto:js.bl...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > 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: "http://"+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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c536426a-36a6-4a24-888c-95ff0a4d053f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c536426a-36a6-4a24-888c-95ff0a4d053f%40googlegroups.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/897ac725-e037-4f77-9541-ec56a90b00bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/897ac725-e037-4f77-9541-ec56a90b00bf%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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 28, 2014, 4:11pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/4 "2014-01-28T16:11:35Z")

</div>

Not sure what you are trying to accomplish by applying Twitter conventions  
on a mailing list. 🙂

Shay has not been on the mailing list in a long time. Eventually someone  
from elasticsearch will read your email.

--  
Ivan

On Tue, Jan 28, 2014 at 7:54 AM, J. Schulz [js.bloonix@gmail.com](mailto:js.bloonix@gmail.com) wrote:

> I know 😉
> 
> @kimchy where to report bugs? On  
> [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch) ...?  
> @bloonix for now, best place is the google group:  
> [Redirecting to Google Groups](https://groups.google.com/forum/#!forum/elasticsearch) ...
> 
> Am Dienstag, 28. Januar 2014 16:51:39 UTC+1 schrieb Ivan Brusic:
> 
> > Marvel was just announced today (to me at least), and there already is a  
> > question/issue? 🙂 Let us know how it is working out.
> > 
> > I am assuming that the elasticsearch team has Marvel as a private repo,  
> > which means you can't post issues.
> > 
> > --  
> > Ivan
> > 
> > On Tue, Jan 28, 2014 at 7:45 AM, J. Schulz [js.bl...@gmail.com](mailto:js.bl...@gmail.com) wrote:
> > 
> > > 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/plugi  
> > > ns/marvel/\_site/kibana/config.js
> > > 
> > > elasticsearch: "http://"+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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/c536426a-36a6-4a24-888c-95ff0a4d053f%  
> > > [40googlegroups.com](http://40googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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/897ac725-e037-4f77-9541-ec56a90b00bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/897ac725-e037-4f77-9541-ec56a90b00bf%40googlegroups.com)  
> > .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CALY%3DcQDvY\_ETGisEGiOyKNLirn%2Bo8PiD8xhe%2BQij0PQB4Jbz\_A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDvY_ETGisEGiOyKNLirn%2Bo8PiD8xhe%2BQij0PQB4Jbz_A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 4:22pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/5 "2014-01-28T16:22:13Z")

</div>

You wrote: "I am assuming that the elasticsearch team has Marvel as a  
private repo, which means you can't post issues."

I just wanted to show you that I already searched for a place where to  
report "bugs" for Marvel and ask Shay on Twitter.

Is it clear now? Have a nice day 🙂

--  
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/1d3b1c85-4cf9-43fd-bd40-72e728b3ddaa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1d3b1c85-4cf9-43fd-bd40-72e728b3ddaa%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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 28, 2014, 5:03pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/6 "2014-01-28T17:03:45Z")

</div>

Understood. 🙂 Can't quite parse twitterspeak early in the morning. It was  
interesting seeing a post about Marvel and then immediately someone on the  
mailing list asking a question. Wow, that was fast.

For those that missed the news:  
[http://www.elasticsearch.com/blog/introducing-elasticsearch-marvel-native-monitoring-deployments/](http://www.elasticsearch.com/blog/introducing-elasticsearch-marvel-native-monitoring-deployments/)

On Tue, Jan 28, 2014 at 8:22 AM, J. Schulz [js.bloonix@gmail.com](mailto:js.bloonix@gmail.com) wrote:

> You wrote: "I am assuming that the elasticsearch team has Marvel as a  
> private repo, which means you can't post issues."
> 
> I just wanted to show you that I already searched for a place where to  
> report "bugs" for Marvel and ask Shay on Twitter.
> 
> Is it clear now? Have a nice day 🙂
> 
> --  
> 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/1d3b1c85-4cf9-43fd-bd40-72e728b3ddaa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1d3b1c85-4cf9-43fd-bd40-72e728b3ddaa%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CALY%3DcQCRARt0KPAqu0HkMOiMOEv5hp4pbnf9VXb-pKM2UVJeZw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCRARt0KPAqu0HkMOiMOEv5hp4pbnf9VXb-pKM2UVJeZw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Will\_Appleby](https://avatars.discourse-cdn.com/v4/letter/w/a8b319/32.png) [@Will\_Appleby](https://discuss.elastic.co/u/Will_Appleby)\
**Post date:** [January 31, 2014, 1:24pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/7 "2014-01-31T13:24:05Z")

</div>

Glad to see this has been reported already. I ran into the exact same  
problem and figured out the same fix too. It would be great if Marvel (and  
Kibana actually does the same thing I believe) could modify the supplied  
config.js to use window.location.protocol instead of assuming "http://" all  
the time.

Great product though 🙂

Cheers,  
Will.

On Tuesday, January 28, 2014 3:45:04 PM UTC, J. Schulz wrote:

> 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: "http://"+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/f9b3cdb7-db59-468e-9c75-a0b95a52c130%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f9b3cdb7-db59-468e-9c75-a0b95a52c130%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:** ![Sean\_Gallagher](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sean\_Gallagher](https://discuss.elastic.co/u/Sean_Gallagher)\
**Post date:** [January 31, 2014, 2:23pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/8 "2014-01-31T14:23:33Z")

</div>

Thanks for reporting this issue! I've submitted the issue to the internal  
repo and the team will take care of it. Keep 'em coming!

On Tuesday, January 28, 2014 10:45:04 AM UTC-5, J. Schulz wrote:

> 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: "http://"+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/c715e943-9b38-465b-a3ef-64ba168032c5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c715e943-9b38-465b-a3ef-64ba168032c5%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:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [February 4, 2014, 3:58pm UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/9 "2014-02-04T15:58:01Z")

</div>

Hi,

Just wanted to drop a note that we just release Marvel 1.0.2 which contains  
a fix for this.  
See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/marvel/current/#_change_list) .

Cheers,  
Boaz

On Friday, January 31, 2014 3:23:33 PM UTC+1, Sean Gallagher wrote:

> Thanks for reporting this issue! I've submitted the issue to the internal  
> repo and the team will take care of it. Keep 'em coming!
> 
> On Tuesday, January 28, 2014 10:45:04 AM UTC-5, J. Schulz wrote:
> 
> > 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: "http://"+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/b5ac68c3-b546-406c-95b1-d483e81fea6f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b5ac68c3-b546-406c-95b1-d483e81fea6f%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:52am UTC](https://discuss.elastic.co/t/marvel-behind-nginx-and-https/15450/10 "2017-07-06T01:52:42Z")

</div>


