Giter Club home page Giter Club logo

Comments (2)

SchoNie avatar SchoNie commented on May 27, 2024

This has absolutely nothing to do with nginx-proxy.

I compared:
php:8.0-apache which is using: curl 7.74.0
php:8.1-apache which is using: curl 7.88.1
(both really old btw)

And your reason seems to be a change in CURL:

Starting in commit 1a0ebf6632f8, to be released in curl 7.78.0, curl now treats the host name “localhost” specially and will use an internal “hard-coded” set of addresses for it – the ones we typically use for the loopback device: 127.0.0.1 and ::1. It cannot be modified by /etc/hosts and it cannot be accidentally or deliberately tricked by DNS resolves. localhost will now always resolve to a local address!

https://daniel.haxx.se/blog/2021/05/31/curl-localhost-as-a-local-host/

And because you are using .localhost in your DNS entry this is exactly what happens.

Try changing .localhost to something random like .ltd I just tested with your compose and that works fine.
Or use the name / alias of the docker container, as Docker DNS automatically makes internal entries for each service. So curl -v https://nginx-proxy points to your nginx-proxy container without adjusting anything manually.

from nginx-proxy.

jacobcassidy avatar jacobcassidy commented on May 27, 2024

@SchoNie Thank you for the detailed follow-up! I'll close the issue since it's not related to nginx-proxy.

from nginx-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.