[[url_prefix]]
== --url_prefix

[float]
Summary
~~~~~~~

In some cases you may be obliged to connect to your Elasticsearch cluster
through a proxy of some kind. There may be a URL prefix before the API URI
items, e.g. `http://example.com/elasticsearch/` as opposed to
`http://localhost:9200`. In such a case, the `--url_prefix` flag is necessary.

[float]
Flags
~~~~~

* `--url_prefix` Elasticsearch http url prefix. Default: none

IMPORTANT: This flag must come before any <<commands,command>>.

[float]
Example
~~~~~~~

Show indices of a cluster at `http://example.com/elasticsearch`:

------------------------------------------------------------------------------------------
curator --host example.com --port 80 --url_prefix elasticsearch show indices --all-indices
------------------------------------------------------------------------------------------
