Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 505 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      no_Legend
      last edited by

      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 -> 192.168.1.3:443
      home2.domain.com/fhem -> 192.168.1.1:8083

      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
      global
      	maxconn			200
      	stats socket /tmp/haproxy.socket level admin
      	uid			80
      	gid			80
      	nbproc			1
      	chroot			/tmp/haproxy_chroot
      	daemon
      	tune.ssl.default-dh-param	2048
      	server-state-file /tmp/haproxy_server_state
      
      frontend SharedFrontend-merged
      	bind			192.168.180.21:443 name 192.168.180.21:443 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 192.168.1.3:443 ssl  verify none
      

      Cheers Robert

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.