@Evertvh said in Using HAproxy for reverse proxy with / in the backend:
if i do go and say https://mail.remote-entry.tld/roundcube I get a Server does not exist return. because technically it the correct path for round cube is https://remote-entry.tld/roundcube
'Who' is saying the server doesn't exist.? I presume you have got the proper DNS records in place to point to haproxy?
Your first post you wrote "but when i try to reach mail.mydomain.com/roundcube it just takes me to the 192.168.0.20" sounds like you actually did get a response.? (no idea if that was with http or https though.. as you seem to forget to actually specify these details which might actually matter..)
@Evertvh said in Using HAproxy for reverse proxy with / in the backend:
if i did get https://mail.remote-entry.tld/roundcube working it would defeat the purpose of what i am trying to achieve.
What are you trying to achieve?
what is the desired url to visit in a browser?
what have you configured? (show the current config?)
what is the current effect
what have you checked and what do you expect might need to change?
is a request from the browser send to the 'correct' webserver currently already? but its virtual-servers configuration just doesn't recognize the proper website to reply for? if so perhaps a simple set-header command with the actual domain would suffice?
Anyhow i'm struggling parsing your reply and thoughts mixed together with a seemingly large lack of understanding..