HTTP request to an HTTPS server

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • AIO 10.15.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Windows 11
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • caddy ? inbuilt in AIO
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • 7 June
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes - Tailscale

Summary of the issue you are facing:

[…]
I did a fresh install of NextCloud AIO and all the containers came up on docker
image

My dashboard shows it is ok to open NC
image

I am trying to access this app over tailscale on other devices

But when i open NC link https://xxxxx.tailxxxxx.ts.net/

it gives 400 error Client sent an HTTP request to an HTTPS server.

Been stuck for 2 days. Below are the apache logs

Steps to replicate it (hint: details matter!):

Log entries

Connection to nextcloud-aio-nextcloud (172.18.0.12) 9000 port [tcp/*] succeeded!

[Sun Jun 08 10:20:03.459700 2025] [mpm_event:notice] [pid 118:tid 118] AH00489: Apache/2.4.63 (Unix) configured -- resuming normal operations

[Sun Jun 08 10:20:03.459755 2025] [core:notice] [pid 118:tid 118] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'

{"level":"info","ts":1749378003.4769025,"msg":"maxprocs: Leaving GOMAXPROCS=20: CPU quota undefined"}

{"level":"info","ts":1749378003.4770412,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":30183104102,"previous":9223372036854775807}

{"level":"info","ts":1749378003.4770648,"msg":"using config from file","file":"/tmp/Caddyfile"}

{"level":"info","ts":1749378003.4781382,"msg":"adapted config to JSON","adapter":"caddyfile"}

{"level":"info","ts":1749378003.48137,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See [https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes⁠](https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes) for details."}

{"level":"info","ts":1749378003.4818106,"msg":"serving initial configuration"}

{"level":"error","ts":1749378007.662786,"msg":"challenge failed","identifier":"desktop-d40rm9m.tail0c4725.ts.net","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain","instance":"","subproblems":null},"stacktrace":"github.com/mholt/acmez/v3.(*Client).pollAuthorization\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:557\ngithub.com/mholt/acmez/v3.(*Client).solveChallenges\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:378\ngithub.com/mholt/acmez/v3.(*Client).ObtainCertificate\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:136\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).doIssue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:489\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:382\ngithub.com/caddyserver/caddy/v2/modules/caddytls.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/caddy/v2@v2.10.0/modules/caddytls/acmeissuer.go:288\ngithub.com/caddyserver/certmagic.(*Config).obtainCert.func2\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:626\ngithub.com/caddyserver/certmagic.doWithRetry\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:104\ngithub.com/caddyserver/certmagic.(*Config).obtainCert\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:700\ngithub.com/caddyserver/certmagic.(*Config).ObtainCertAsync\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:505\ngithub.com/caddyserver/certmagic.(*Config).manageOne.func1\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:415\ngithub.com/caddyserver/certmagic.(*jobManager).worker\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:73"}

{"level":"error","ts":1749378007.6628714,"msg":"validating authorization","identifier":"desktop-d40rm9m.tail0c4725.ts.net","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain","instance":"","subproblems":null},"order":"https://acme-v02.api.letsencrypt.org/acme/order/2451470842/392556194642","attempt":1,"max_attempts":3,"stacktrace":"github.com/mholt/acmez/v3.(*Client).ObtainCertificate\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:152\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).doIssue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:489\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:382\ngithub.com/caddyserver/caddy/v2/modules/caddytls.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/caddy/v2@v2.10.0/modules/caddytls/acmeissuer.go:288\ngithub.com/caddyserver/certmagic.(*Config).obtainCert.func2\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:626\ngithub.com/caddyserver/certmagic.doWithRetry\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:104\ngithub.com/caddyserver/certmagic.(*Config).obtainCert\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:700\ngithub.com/caddyserver/certmagic.(*Config).ObtainCertAsync\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:505\ngithub.com/caddyserver/certmagic.(*Config).manageOne.func1\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:415\ngithub.com/caddyserver/certmagic.(*jobManager).worker\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:73"}

{"level":"error","ts":1749378007.6628978,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"desktop-d40rm9m.tail0c4725.ts.net","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain"}

{"level":"error","ts":1749378007.6629162,"logger":"tls.obtain","msg":"will retry","error":"[desktop-d40rm9m.tail0c4725.ts.net] Obtain: [desktop-d40rm9m.tail0c4725.ts.net] solving challenge: desktop-d40rm9m.tail0c4725.ts.net: [desktop-d40rm9m.tail0c4725.ts.net] authorization failed: HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain (ca=https://acme-v02.api.letsencrypt.org/directory)","attempt":1,"retrying_in":60,"elapsed":4.149707786,"max_duration":2592000}

{"level":"error","ts":1749378071.1218762,"msg":"challenge failed","identifier":"desktop-d40rm9m.tail0c4725.ts.net","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain","instance":"","subproblems":null},"stacktrace":"github.com/mholt/acmez/v3.(*Client).pollAuthorization\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:557\ngithub.com/mholt/acmez/v3.(*Client).solveChallenges\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:378\ngithub.com/mholt/acmez/v3.(*Client).ObtainCertificate\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:136\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).doIssue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:489\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:382\ngithub.com/caddyserver/caddy/v2/modules/caddytls.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/caddy/v2@v2.10.0/modules/caddytls/acmeissuer.go:288\ngithub.com/caddyserver/certmagic.(*Config).obtainCert.func2\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:626\ngithub.com/caddyserver/certmagic.doWithRetry\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:104\ngithub.com/caddyserver/certmagic.(*Config).obtainCert\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:700\ngithub.com/caddyserver/certmagic.(*Config).ObtainCertAsync\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:505\ngithub.com/caddyserver/certmagic.(*Config).manageOne.func1\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:415\ngithub.com/caddyserver/certmagic.(*jobManager).worker\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:73"}

{"level":"error","ts":1749378071.122061,"msg":"validating authorization","identifier":"desktop-d40rm9m.tail0c4725.ts.net","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for desktop-d40rm9m.tail0c4725.ts.net - check that a DNS record exists for this domain","instance":"","subproblems":null},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/204621914/25195376854","attempt":1,"max_attempts":3,"stacktrace":"github.com/mholt/acmez/v3.

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hi, please post this in this thread: Tailscale (and Caddy as a sidecar) Reverse Proxy · nextcloud/all-in-one · Discussion #5439 · GitHub