I was using .htaccess to redirect users to cloud.
Here is my config in apache mod.i put in some dummy urls. it needs to redirect on port 443.
I need to switch over to Ha Proxy, I am using the latest stable haproxy. 1.8
RewriteRule ^token. https://123.testing.io:443/oauth/token [R=301,L] RewriteRule ^test2.* https://345.testing.io:443/svc/device/dev?limit=100 [R=301,L]
RewriteRule ^test3.$ https:/456.testing.io:443/svc/v1/com/devices [R=307,L]
so basically when someone goes to the server with /token it forwards them to the cloud url on port 443. The requests are also being sent on port 443.
cant figure out how to get these to work in haproxy. backend needs IP not url.
These urls are in aws cloud, I cannot use IP address only url.
can someone assist please.