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

    Ns URL domain?

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 321 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.
    • K
      killmasta93
      last edited by

      Hi,
      I was wondering if someone else has happened to them? Currently have 2 websites with 2 different domains. everything works well, the only issue is with the www, whats odd if i clean my cache and run private mode it works. but some client complain about it if they put the www and get on chrome

      an SSL error occured and a secure server connection to the server cannot be made 
      NS URL ERROR DOMAIN
      

      This is my HAproxy

      # Automaticaly generated, dont edit manually.
      # Generated on: 2019-02-05 10:15
      global
      	maxconn			500
      	stats socket /tmp/haproxy.socket level admin 
      	gid			80
      	nbproc			1
      	hard-stop-after		15m
      	chroot				/tmp/haproxy_chroot
      	daemon
      	server-state-file /tmp/haproxy_server_state
      
      listen HAProxyLocalStats
      	bind 127.0.0.1:2200 name localstats
      	mode http
      	stats enable
      	stats admin if TRUE
      	stats show-legends
      	stats uri /haproxy/haproxy_stats.php?haproxystats=1
      	timeout client 5000
      	timeout connect 5000
      	timeout server 5000
      
      frontend SharedFrontend-merged
      	bind			190.157.xx.xx:443 name 190.157.xx.xx:443   
      	mode			tcp
      	log			global
      	timeout client		30000
      	tcp-request connection set-src str(192.168.1.1) if { src 192.168.1.0/24 }
      	tcp-request inspect-delay	5s
      	acl			ame	req.ssl_sni -i domain2.com.co
      	acl			lam	req.ssl_sni -i domain1.com
      	acl			cloud	req.ssl_sni -i cloud.domain1.com
      	tcp-request content accept if { req.ssl_hello_type 1 }
      	use_backend Backend1_ipv4  if  ame 
      	use_backend Backend2_ipv4  if  lam 
      	use_backend Backend3_ipv4  if  cloud 
      
      frontend HTTPTOHTTPS
      	bind			190.157.xx.xx:80 name 190.157.xx.xx:80   
      	mode			http
      	log			global
      	option			http-keep-alive
      	timeout client		30000
      	tcp-request connection set-src str(192.168.1.1) if { src 192.168.1.0/24 }
      	acl			ame	var(txn.txnhost) -m str -i domain2.com.co
      	acl			lam	var(txn.txnhost) -m str -i domain1.com
      	acl			cloud	var(txn.txnhost) -m str -i cloud.domain1.com
      	acl			web2	var(txn.txnhost) -m str -i www.domain2.com.co
      	acl			web3	var(txn.txnhost) -m str -i www.domain1.com
      	http-request set-var(txn.txnhost) hdr(host)
      	http-request redirect scheme https  if  ame 
      	http-request redirect scheme https  if  lam 
      	http-request redirect scheme https  if  cloud 
      	http-request redirect prefix https://domain2.com.co  if  web2 
      	http-request redirect prefix https://domain1.com  if  web3 
      
      backend Backend1_ipv4
      	mode			tcp
      	id			10100
      	log			global
      	timeout connect		30000
      	timeout server		30000
      	retries			3
      	source ipv4@ usesrc clientip
      	server			ame 192.168.1.229:443 id 10101 check inter 1000  
      
      backend Backend2_ipv4
      	mode			tcp
      	id			10102
      	log			global
      	timeout connect		30000
      	timeout server		30000
      	retries			3
      	source ipv4@ usesrc clientip
      	server			lam 192.168.1.230:443 id 10101 check inter 1000  
      
      backend Backend3_ipv4
      	mode			tcp
      	id			10103
      	log			global
      	timeout connect		30000
      	timeout server		30000
      	retries			3
      	source ipv4@ usesrc clientip
      	server			cloud 192.168.1.250:443 id 10101 check inter 1000
      

      I was reading about this and few solutions said something like this

      reqirep  ^([^\ :]*)\ /(.*) \1\ /web1/\2
      

      Thank you

      Tutorials:

      https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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