In both cases, I enter with the same domain that starts with “www.”
Here the code is doing the redir:
:80 {
#Block all domains that start with "www."
# Check if the HOST include www. in the start
@www_80_Hosts header_regexp Host ^www\.
error @www_80_Hosts "Access Denied - You can not use www for A record. Fix your DNS records. Talk with the support." 403
redir http://www.{host}{uri}
#respond "Welcome to the testing page! {host}"
}
And here when I commend the redir and add the respond he return the user 403 error “Access Denied”:
:80 {
#Block all domains that start with "www."
# Check if the HOST include www. in the start
@www_80_Hosts header_regexp Host ^www\.
error @www_80_Hosts "Access Denied - You can not use www for A record. Fix your DNS records. Talk with the support." 403
#redir http://www.{host}{uri}
respond "Welcome to the testing page! {host}"
}
Why?