我有一个url:
http://ip:9200/_plugin/head/
我想在访问时打开该URL:
http://ip/es-head
我如何在Apache中做到这一点?
你需要使用mod_proxy 。 Apacheconfiguration看起来像这样:
ProxyPass /es-head/ http://ip:9200/_plugin/head/ ProxyPassReverse /es-head/ http://ip:9200/_plugin/head/
Apache手册有一些例子。