All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

HaProxy custom ports

I need to load balancing one of our customers application portal. The flow works as follow: The enduser reach the portal through the URL example.net:3000/login page; The enduser will choose one of ...
FriendlyPotat95's user avatar
0 votes
1 answer
1k views

HaProxy redirect to internal URL

I have a configuration with two backend servers I need to redirect 301 to each server with an internal URL on HTTP. It's hard to use SSL because I can't install SSL on the Report Server in that ...
Dr.Fr05t's user avatar
1 vote
0 answers
274 views

HAPROXY - redirect URL and keep the same URI

Im using haproxy to do redirections. Basically I have a URL ( https://google.com// ) and I want to keep the same URI and just redirect only the base url ( https://test.com//). For HAPROXY it has to be ...
drowzee's user avatar
  • 93
0 votes
1 answer
2k views

http redirect and append client IP as URL query

i have this weird issue which we need as a workaoround for an internal application limitation. this is what I need, either from haproxy or nginx: something calls http://my-server/?some=query_string ...
flypenguin's user avatar
0 votes
1 answer
3k views

Keep path while redirecting to another domain with haproxy [closed]

Good day! I am hosting a web site https://one.com, a user access the site with a sub-path https://one.com/anything, i need to redirect the user to another domain but to keep the sub-path https://two....
c0re.tnt's user avatar
0 votes
1 answer
1k views

HAProxy URL redirection

I have a goal to redirect some URLs into one. I mean this is the destination url: https://application.company.com I want to redirect: http://company.com https://company.com https://application.company....
Tóth István's user avatar
3 votes
0 answers
1k views

Haproxy same port for http and https

I want my webapplication run only on port 4443. So i added this port to my docker container on haproxy. Now i want to inspect the incomming request and if it is not https, it should redirect to it. ...
Samhamsam's user avatar
0 votes
1 answer
305 views

Haproxy 1.8 redirect confusion

I need some help with my redirects, currently i can the following domains: http://example.com http://www.example.com http://example.net http://www.example.net These need to redirect to secure: ...
Matt Jenkins's user avatar
0 votes
1 answer
180 views

SNI HTTPS Redirection Haproxy

I’m using now haproxy v.1.7 for redirect HTTPS requests, but I have the following problem. I want to recognize any subdomain that comes from any user for this domain test123.com (as an example) and ...
user573168's user avatar
0 votes
1 answer
431 views

HAproxy http to https redirect won't work with Internet Explorer

I have a problem with HAproxy, it won't redirect HTTP to HTTPS if using Internet Explorer. It just tells me that this webpage doesn't exist if I'm trying to connect over http. My configuration (real ...
user3015080's user avatar
0 votes
1 answer
429 views

haproxy 1.7 redirect and rejecting some IPs

To redirect several subdomains on the same IP to different hosts, I'm using haproxy (1.7.5, Debian stable) and it works fine. However I also want to restrict access to some hosts by IP and display a ...
wazoox's user avatar
  • 6,968
3 votes
2 answers
5k views

wp-admin redirect loop when behind apache reverse proxy

Its my first post in Server Fault, so I'm sorry for any faux pas :) Problem: When I try to access "http://dummy_server/wp-admin" that is behind an apache acting as a WAF, it gets stuck in an infinite ...
Fran Gimenez's user avatar
0 votes
0 answers
3k views

haproxy redirect URL path to another path

haproxy version 1.5.18 I want to redirect: /document/(.*)/(.*)/somefile => /anotherPath/somefile For example: redirect /document/20181/20182/a_good_pic.jpg => /anotherPath/a_good_pic.jpg ...
r ne's user avatar
  • 101
0 votes
1 answer
1k views

Nginx http to https redirect not working when listening to upstream loadbalancer

I currently have an HAProxy load balancer out front, without SSL termination, that routes traffic to a couple web servers. On the webserver, nginx terminates the SSL, and in theory provides http to ...
Msencenb's user avatar
  • 113
3 votes
1 answer
4k views

HAProxy add some headers before 302 redirect

I'm trying to add some security headers to the responses that are directed to a specific port. I have the following configured frontend: frontend desenv_ext_1 bind *:80 bind *:443 ssl crt /etc/ssl/...
R Wagner's user avatar
2 votes
0 answers
1k views

HaProxy 1.7.9 redirect using acl

I have a couple of HA Proxy servers in a master / slave configuration using keepalived. Initially, the HA Proxy worked by having a default backend of HTTP and HTTPS servers, but over the past year, ...
Stuart Hurst's user avatar
0 votes
1 answer
2k views

HaProxy alias domains

I have several domains which are variations of my main domain. I want to redirect them all to my main domain ignoring the protocol (http/https) and subdomain (www./beta.). Is there a way to do this in ...
SJC's user avatar
  • 211
3 votes
1 answer
1k views

Redirect domain to second preserving prefix-subdomain

I am working with HAProxy and want to be able to redirect all traffic from domainA to a second domainB preserving the prefix/subdomain. I have tried things like: redirect prefix http://www.domainA....
SJC's user avatar
  • 211
0 votes
1 answer
375 views

nginx redirection/proxying, one domain(url) with two IP's

We want to setup failover mechanism for one of java applications, application have 3 instances on one server and each instance must be accessed via different url, those url's are already registered ...
vladeli's user avatar
  • 99
1 vote
1 answer
151 views

Prepend "player-" before numeric URLs with the help of HAProxy 1.5

I run a web game embedded in Wordpress/Jetty behind HAProxy 1.5 on CentOS 7 Linux. The website can be accessed both as http and https. I have modified Wordpress to display player profile pages at ...
Alexander Farber's user avatar
0 votes
2 answers
1k views

haproxy redirect doesn't work for kibana

My haproxy config looks like and redirect to 5601 for kibana doesn't work. Why? ########################################################################## defaults mode http log ...
Kibaner_User's user avatar
0 votes
2 answers
4k views

HAProxy - Redirect scheme to HTTPS by keeping the same HTTP method (POST)

I'm using HAProxy 1.6 I'm forcing https usage. Therefore in my backend I'm redirecting http to https. For that I'm using the following code: backend my-app-name redirect scheme https if !{ ...
maxime_039's user avatar
2 votes
1 answer
8k views

HAProxy 1.6 redirect using http-response, map and regsub

I want to setup a redirect map similar to this https://stackoverflow.com/questions/23001799/how-do-i-used-the-map-feature-in-haproxy-to-build-massive-redirect-tables-1-5 The difference is I want to ...
Rudy Lee's user avatar
  • 165
0 votes
1 answer
6k views

Simple redirect to HAproxy backend servers

I want to configure simple redirect with HAproxy. Desired behaviour: HAProxy receives request to example.com or https://example.com and returns https webserver start page from servers list excluding ...
Oleg Doroshenko's user avatar
1 vote
1 answer
1k views

Haproxy redirect to different subdomain

I am trying to redirect one url example.com/blog to blog.example.com using haproxy. I have applied following rule: acl blog_path path_beg -i /blog/ redirect location http://blog.example.com/ code ...
Gaurav Pundir's user avatar
5 votes
2 answers
48k views

Haproxy redirect based on path

Similar to HAProxy reqrep remove URI on backend request. The following concerns apply for us. We have applications which were running with different context roots off one domain. However not all ...
Wes's user avatar
  • 201
2 votes
1 answer
1k views

Haproxy ssl redirecting

I'm not sure if I understand how to haproxy works exactly. I have system which is composed of few servers with communication based on http. I want to use haproxy as load balancer and something like ...
Eleid's user avatar
  • 21
1 vote
2 answers
10k views

HAProxy redirecting

I'm trying to get HAProxy to redirect to the right URI's in case the requested URI is non-www or non-https. The problem I'm encoutering is that it redirects as soon as it hits a line, resulting in ...
yp28's user avatar
  • 11
2 votes
1 answer
881 views

HAProxy/Varnish: redirecting a percentage of traffic

I'm trying to measure separate statistics for two different versions of a web page. So I need to redirect a certain percentage of my web traffic to a different page than the one requested (i.e. 20% of ...
jeremyjr's user avatar
  • 375
6 votes
3 answers
28k views

HAProxy: Redirect Root Site Root to Subsite

I would like to redirect the root of my website to a subsite by default. Like http://www.domain.com/ ---> http://www.domain.com/subsite I have tried this, but this matches all the URLs anyway: ...
Ianthe the Duke of Nukem's user avatar
2 votes
2 answers
2k views

WordPress behind haproxy: $_POST being reset

So here's the sitch: Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
Nathaniel Schweinberg's user avatar
2 votes
1 answer
5k views

HAProxy: stop subdomains from redirecting to https

After editing my haproxy config. All my subdomains are now redirecting to https. I just want my domain.com to redirect to https not my subdomains. How do I stop this? Below is my redirect script. ...
Gene Diaz's user avatar
  • 717
0 votes
1 answer
3k views

Handling 404's with HAProxy

I have a bunch of domains passing to a Resin cluster through an HAProxy. The idea is, when I receive a 404 because of a non-existent subdomain, I want to redirect it to the existing page, like this: ...
Masterl1nk's user avatar
7 votes
1 answer
29k views

HAProxy Redirects and matching based off URI

I am attempting to setup a testing haproxy server that will cover 2 basic areas. Auto redirect to https if the user is using http but only if a specific uri part is not present. For example, if a ...
rottmanj's user avatar
  • 213
4 votes
2 answers
15k views

HAProxy redirect HTTPS to HTTP

I'm using HAProxy as a load balancer and i'd like to redirect any traffic that comes in on 443 (HTTPS) to 80 (HTTP). My site doesn't support HTTPS at all and i'd rather just redirect users than cause ...
tarnfeld's user avatar
  • 471
0 votes
1 answer
355 views

HAProxy and 2 webservers

I have a website that is split into two different servers: chat server in node.js normal website (lighttpd + php + whatever) now, I have set HAProxy in the same machine as node.js chat, so that when ...
carmelo arena's user avatar
5 votes
1 answer
3k views

How to not redirect when cookie is set in haproxy?

On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
OpenHaus's user avatar
2 votes
3 answers
3k views

haproxy SSL "fail whale" maintenance page

We're using haproxy's custom error page feature to show a "fail whale" maintenance page while we're doing deployments to our site. However, since haproxy cannot show SSL'd users the custom error page,...
robbyt's user avatar
  • 1,642
2 votes
2 answers
4k views

Is HAProxy with balance roundrobin redirect location possible?

I'm trying to set up an HAProxy that will listen on port 80 and roundrobin redirect location any traffic to two servers along with doing the health check. The servers have different URL's so afaik ...
Joe T's user avatar
  • 25