# Failed to create alias: \<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"\>

**URL:** <https://discuss.elastic.co/t/failed-to-create-alias-doctype-html-public-ietf-dtd-html-2-0-en/200226>\
**Category:** Elasticsearch\
**Created:** [September 19, 2019, 2:18pm UTC](https://discuss.elastic.co/t/failed-to-create-alias-doctype-html-public-ietf-dtd-html-2-0-en/200226 "2019-09-19T14:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaiganesh06](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jaiganesh06](https://discuss.elastic.co/u/jaiganesh06)\
**Post date:** [September 19, 2019, 2:18pm UTC](https://discuss.elastic.co/t/failed-to-create-alias-doctype-html-public-ietf-dtd-html-2-0-en/200226/1 "2019-09-19T14:18:23Z")

</div>

Hi All,

Version - 7.3.x  
I have ES behind Apache 2.4 reverse proxy. At first instance, when no index is created in ES, I am getting below error from filebeat

```
2019-09-19T19:35:53.281+0530	ERROR	pipeline/output.go:100	Failed to connect to backoff(elasticsearch(http://<reverseproxy>:80)): Connection marked as failed because the onConnect callback failed: failed to create alias: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>404 Not Found</title>
> </head><body>
> <h1>Not Found</h1>
> <p>The requested URL was not found on this server.</p>
> </body></html>
> : 404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>404 Not Found</title>
> </head><body>
> <h1>Not Found</h1>
> <p>The requested URL was not found on this server.</p>
> </body></html>

```

However, once related index is created in ES without using reverse proxy, after that I have no issues in publishing the logs from filebeat to ES via reverse proxy. It works fine.  
Since my index is based on month and year, I believe this would cause above issue, once index rollover happens every month, with reverse proxy in place

Please help

Thanks  
Jai

---

<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:** [October 17, 2019, 2:18pm UTC](https://discuss.elastic.co/t/failed-to-create-alias-doctype-html-public-ietf-dtd-html-2-0-en/200226/2 "2019-10-17T14:18:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
