Different port for each website?

1. Caddy version (2.30.):

2. How I run Caddy:

Caddy start

a. System environment:

macOS

b. Command:

Caddy start

c. Service/unit/compose file:

paste full file contents here

d. My complete Caddyfile or JSON config:


madame.noff.co {
root * /users/glen/public/www/madamenof
encode gzip

push {
}
     php_fastcgi 127.0.0.1:9000
file_server

@static {
  file
  path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff
}

header {
        # enable HSTS
        Strict-Transport-Security max-age=31536000;

        # disable clients from sniffing the media type
        X-Content-Type-Options nosniff

        # clickjacking protection
        X-Frame-Options DENY

        # keep referrer data off of HTTP connections
        Referrer-Policy no-referrer-when-downgrade
        Content-Security-Policy "upgrade-insecure-requests"
        X-XSS-Protection: 1
        @static Cache-Control "max-age=5184000"
}
}

www.fuzavue.com, fuzavue.com {

root * /users/glen/public/www/fuzavue
encode gzip
  log {
    output file /Users/glen/var/log/caddy/fuzavue.log
  }
#push {
#}
     php_fastcgi 127.0.0.1:9000
file_server

@static {
  file
  path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff
}

header {
	# enable HSTS
	Strict-Transport-Security max-age=31536000;

	# disable clients from sniffing the media type
	X-Content-Type-Options nosniff
	
	# clickjacking protection
	X-Frame-Options DENY

	# keep referrer data off of HTTP connections
	Referrer-Policy no-referrer-when-downgrade
        Content-Security-Policy "upgrade-insecure-requests"
        X-XSS-Protection: 1
        @static Cache-Control "max-age=5184000"
}
}

3. The problem I’m having:

I’m not sure how I would go about doing this. I am running CaddyServer on 2 separate Mac’s within my network. On my main server, I have it set to go to one of my sites, which is working perfectly. To offload tasks, I would like to have all other sites run on the second mac. I have included the caddyfile for the second Mac. Now, I see with load balancing, you’re allowed to do this, but it appears that it would be multiple servers (1.0.0.1:9000, 1.0.0.2:9000, and so on). How can this be accomplished with just two servers, the main server running one website, and the second server running multiple websites) if that makes any sense. I believe on the main server, I would use reverse_proxy to 1.0.0.30, but how would that know which website to load from the second server? Thanks for the help

4. Error messages and/or full log output:

I haven’t made it far enough to get any errors

5. What I already tried:

I have tried reading up on reverse_proxy and load balancing, but it left me even more confused.

6. Links to relevant resources:

Please run caddy fmt on your config, it’ll clean up the indentation of your config. It’s quite hard to follow as-is.

You should remove the : here, it’s not valid in Caddy syntax.

This isn’t right, you can’t use a matcher in subdirectives. You’ll need to make a separate header directive, like this:

header @static Cache-Control "max-age=5184000"

Anyways, with all that said, I don’t understand your question. Could you try to reword it? What exactly is your goal?

Thanks for the tip!

Anyway, so server 1:

Running caddy with the following caddyfile:

social.nofftopia.com, nofftopia.com, noff.co, www.nofftopia.com, www.noff.co, social.noff.co {

    root * /users/glen/public/www/mastodon/public*

    @try_masto file
    handle @try_masto {
            file_server
    }

    handle /api/v1/streaming* {
            reverse_proxy localhost:4000
    }

    handle {
            reverse_proxy localhost:3000
    }

    encode gzip

    header Strict-Transport-Security "max-age=31536000;"
    header /emoji* Cache-Control "public, max-age=31536000, immutable"
    header /packs* Cache-Control "public, max-age=31536000, immutable"
    header /system/accounts/avatars* Cache-Control "public, max-age=31536000, immutable"
    header /system/media_attachments/files* Cache-Control "public, max-age=31536000, immutable"

    handle_errors {
            root * /users/glen/public/www/mastodon/public
            rewrite 500.html
            file_server
    }

}

Then I am running server 2 with the caddyfile posted in my post above. Issue is, since both servers are on the same network, I can’t have port 80 and 433 public on both servers. How can I make it so that the first server will proxy or load balance the requests for the other website to the secondary server?

I guess on the publicly accessible server you can do this:

# Sites you want to serve directly
foo.example.com, bar.example.com {
	respond "Foobar"
}

# Proxy to some other server on your LAN
baz.example.com, qux.example.com {
	reverse_proxy 192.168.1.10
}

And on the 2nd server:

http://baz.example.com, http://qux.example.com {
	respond "Bazqux"
}

So basically, TLS will be terminated at your first server, then it will proxy over HTTP to your 2nd server. Since this is in your LAN, the risk of a man-in-the-middle should be pretty low.

This works because by default, Caddy passes through the Host header of the original request in the reverse_proxy handler, so the host is preserved. So you can match the requests based on the host on the 2nd server without trouble.

You could go the extra step of setting up mTLS between the two servers, but that’s probably overkill for you. This would involve adding the acme_server directive to some site on your first server, and configuring the second server to use the first as its ACME server (i.e. instead of Let’s Encrypt/ZeroSSL). This would let you proxy over HTTPS for the hop between the two.

2 Likes

This sounds simple, but I think I still managed to mess it up…

Server 1 caddyfile:

social.nofftopia.com, nofftopia.com, noff.co, www.nofftopia.com, www.noff.co, social.noff.co {
    root * /users/glen/public/www/mastodon/public*

    @try_masto file
    handle @try_masto {
            file_server
    }

    handle /api/v1/streaming* {
            reverse_proxy localhost:4000
    }

    handle {
            reverse_proxy localhost:3000
    }

    encode gzip

    header Strict-Transport-Security "max-age=31536000;"
    header /emoji* Cache-Control "public, max-age=31536000, immutable"
    header /packs* Cache-Control "public, max-age=31536000, immutable"
    header /system/accounts/avatars* Cache-Control "public, max-age=31536000, immutable"
    header /system/media_attachments/files* Cache-Control "public, max-age=31536000, immutable"

    handle_errors {
            root * /users/glen/public/www/mastodon/public
            rewrite 500.html
            file_server
    }

}

Fuzarooms.com, www.fuzarooms.com {
    reverse_proxy 10.0.0.30
    log {
            output file /Users/glen/var/log/caddy/fuzarooms.log
    }

}

Caddyfile on server 2:

Fuzarooms.com, www.fuzarooms.com {
    root * /users/glen/public/www/wordpress
    encode gzip
    log {
            output file /Users/glen/var/log/caddy/fuzarooms.log
    }
    #push {
    #}
    php_fastcgi 127.0.0.1:9000
    file_server

    @static {
            file
            path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff
    }

    header {
            # enable HSTS
            Strict-Transport-Security max-age=31536000;

            # disable clients from sniffing the media type
            #X-Content-Type-Options nosniff

            # clickjacking protection
            #X-Frame-Options DENY

            # keep referrer data off of HTTP connections
            Referrer-Policy no-referrer-when-downgrade
            Content-Security-Policy "upgrade-insecure-requests"
            #X-XSS-Protection: 1
            @static Cache-Control "max-age=5184000"
    }

}

When I try to access fuzarooms.com, I get a “Safari cannot open the page because too many redirects occurred”

Log says:

{“level”:“info”,“ts”:1611252835.1458519,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.00288725,“size”:0,“status”:308,“resp_headers”:{“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:55 GMT”],“Server”:[“Caddy”,“Caddy”]}}
{“level”:“info”,“ts”:1611252835.219645,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.003385333,“size”:0,“status”:308,“resp_headers”:{“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:55 GMT”],“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”]}}
{“level”:“info”,“ts”:1611252835.304696,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002654792,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:55 GMT”]}}
{“level”:“info”,“ts”:1611252835.368782,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.003282375,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:55 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252835.4385788,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002206125,“size”:0,“status”:308,“resp_headers”:{“Date”:[“Thu, 21 Jan 2021 18:13:55 GMT”],“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/”]}}
{“level”:“info”,“ts”:1611252835.499151,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.003152542,“size”:0,“status”:308,“resp_headers”:{“Date”:[“Thu, 21 Jan 2021 18:13:55 GMT”],“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/”]}}
{“level”:“info”,“ts”:1611252835.9697459,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:55 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.00319225,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Date”:[“Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/”]}}
{“level”:“info”,“ts”:1611252836.3956218,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002240375,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”]}}
{“level”:“info”,“ts”:1611252836.4482281,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002148875,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252836.5087,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002395167,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252836.569342,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002598083,“size”:0,“status”:308,“resp_headers”:{“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”]}}
{“level”:“info”,“ts”:1611252836.639468,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002742666,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252836.70877,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002154875,“size”:0,“status”:308,“resp_headers”:{“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”]}}
{“level”:“info”,“ts”:1611252836.788629,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002229625,“size”:0,“status”:308,“resp_headers”:{“Content-Length”:[“0”],“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:56 GMT”]}}
{“level”:“info”,“ts”:1611252836.860518,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:56 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.003307875,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Date”:[“Thu, 21 Jan 2021 18:13:56 GMT”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/”]}}
{“level”:“info”,“ts”:1611252837.079468,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:57 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002044417,“size”:0,“status”:308,“resp_headers”:{“Location”:[“https://fuzarooms.com/"],“Server”:[“Caddy”,“Caddy”],“Date”:["Thu, 21 Jan 2021 18:13:57 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252837.9879448,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:57 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002318042,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Date”:[“Thu, 21 Jan 2021 18:13:58 GMT”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/”]}}
{“level”:“info”,“ts”:1611252838.128145,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:58 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002243542,“size”:0,“status”:308,“resp_headers”:{“Date”:[“Thu, 21 Jan 2021 18:13:58 GMT”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/"],“Server”:[“Caddy”,"Caddy”]}}
{“level”:“info”,“ts”:1611252838.198047,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:58 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.002285125,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:58 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252838.277601,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”],“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:58 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.0023415,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Location”:[“https://fuzarooms.com/"],“Date”:["Thu, 21 Jan 2021 18:13:58 GMT”],“Content-Length”:[“0”]}}
{“level”:“info”,“ts”:1611252838.402014,“logger”:“http.log.access.log1”,“msg”:“handled request”,“request”:{“remote_addr”:“172.56.42.182:46564”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“fuzarooms.com”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1”],“Accept”:[“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”],“Accept-Language”:[“en-us”],“Accept-Encoding”:[“gzip, deflate, br”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“proto_mutual”:true,“server_name”:“fuzarooms.com”}},“common_log”:“172.56.42.182 - - [21/Jan/2021:10:13:58 -0800] “GET / HTTP/2.0” 308 0”,“duration”:0.003118042,“size”:0,“status”:308,“resp_headers”:{“Server”:[“Caddy”,“Caddy”],“Date”:[“Thu, 21 Jan 2021 18:13:58 GMT”],“Content-Length”:[“0”],“Location”:[“https://fuzarooms.com/”]}}

Disregard, I see what I did wrong,

I just noticed that you added http:// to the secondary server. Added that to my caddy file fixed the issue. You’re the best, thank you so much for all your help! This can be closed now.

1 Like

Actually, I spoke too soon. The sites work, but if I try to go to let’s say Log In ‹ FuZaVue — WordPress for example, again it says too many redirects

Disregard again :sweat_smile: updating the info for the Wordpress database from https:// to http:// fixed it

1 Like

Awesome :smiley:

1 Like

Thanks again!

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.