haproxytech / spoa-mirror

Mirror HTTP requests using the HAProxy SPOP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to resolve hostname and no option to specify custom port for mirror

NuthanReddy opened this issue · comments

My application runs on 8080 post and
assuming the host is 10.128.0.1

adding an entry in /etc/hosts
10.128.0.1 my-appserver

my process entry in haproxy config would look like
spoa-mirror -r0 -u"http://my-appserver/post"

this doesn't work.

I've also tried with my application port as 80.
Still no luck

using this worked:
spoa-mirror -r0 -u"http://my-appserver:8080/post"