Haproxy config for home.domain.com/omv how to do?

  • Hi Guys,

    i need some advise.
    I want to setup haproxy to handel server webservers in my internal net.

    I added a sub domain by my webhoster and add a cname to send the subdomain to an dydns service.

    No i want config HAproy like this.
    home2.domain.com/omv ->
    home2.domain.com/fhem ->

    Here is where i did not get i running.

    Is anybody run this setup and will please provide some screen shots for me as advice?

    Edit: I added the config i have done right now.

    # Automaticaly generated, dont edit manually.
    # Generated on: 2017-08-09 18:21
    	maxconn			200
    	stats socket /tmp/haproxy.socket level admin
    	uid			80
    	gid			80
    	nbproc			1
    	chroot			/tmp/haproxy_chroot
    	tune.ssl.default-dh-param	2048
    	server-state-file /tmp/haproxy_server_state
    frontend SharedFrontend-merged
    	bind name ssl  crt /var/etc/haproxy/SharedFrontend.pem  
    	mode			http
    	log			global
    	option			http-keep-alive
    	option			forwardfor
    	acl https ssl_fc
    	http-request set-header		X-Forwarded-Proto http if !https
    	http-request set-header		X-Forwarded-Proto https if https
    	timeout client		30000
    	acl			aclcrt_SharedFrontend	hdr_reg(host) -i ^home2\.domainname\.de(:([0-9]){1,5})?$
    	acl			home2	hdr_beg(host) -i home2.domainname.de
    	use_backend omv_http_ipvANY  if  home2 
    backend omv_http_ipvANY
    	mode			http
    	log			global
    	timeout connect		30000
    	timeout server		30000
    	retries			3
    	server			omvserver ssl  verify none

    Cheers Robert

Log in to reply