拉拉多克球童双重要求
信息:
- docker版本(
$ docker --version
docker$ docker --version
):17.03.1-ce,build c6d412e - Laradock提交(
$ git rev-parse HEAD
):5cd6ea41f99335880b5258e47f5853592db66b49 - 系统信息(Mac,PC,Linux):Linux(Debian)
问题:
当我通过邮递员运行API POST调用时,它会触发2个呼叫而不是一个。 我用SSL运行球童,这不是总是发生,在10个电话我得到1至3倍。 但是当我运行没有SSL的球童它工作正常,与没有SSL的nginx一样工作得很好。 不知道什么可能会导致这种问题。
相关编码:
Caddyfile
不工作(调用两次单个邮政方法)
# Docs: https://caddyserver.com/docs/caddyfile https://{MYWEBSITE}.com { root /var/www/public fastcgi / php-fpm:9000 php { index index.php } # To handle .html extensions with laravel change ext to # ext / .html rewrite { r .* ext / to /index.php?{query} } gzip browse log /var/log/caddy/access.log errors /var/log/caddy/error.log # Uncomment to enable TLS (HTTPS) # Change the first list to listen on port 443 when enabling TLS #tls self_signed # To use Lets encrpt tls with a DNS provider uncomment these # lines and change the provider as required #tls { # dns cloudflare #} } https://{MYWEBSITE}.com/storage { root /storage }
工作得很好(注意这里是HTTP)
# Docs: https://caddyserver.com/docs/caddyfile http://{MYWEBSITE}.com { root /var/www/public fastcgi / php-fpm:9000 php { index index.php } # To handle .html extensions with laravel change ext to # ext / .html rewrite { r .* ext / to /index.php?{query} } gzip browse log /var/log/caddy/access.log errors /var/log/caddy/error.log # Uncomment to enable TLS (HTTPS) # Change the first list to listen on port 443 when enabling TLS #tls self_signed # To use Lets encrpt tls with a DNS provider uncomment these # lines and change the provider as required #tls { # dns cloudflare #} } http://{MYWEBSITE}.com/storage { root /storage }