Giter Site home page Giter Site logo

http-01 failed about lua-resty-acme HOT 4 CLOSED

fffonion avatar fffonion commented on July 1, 2024
http-01 failed

from lua-resty-acme.

Comments (4)

fffonion avatar fffonion commented on July 1, 2024

@elvizlai I can't think of a place where 501 is thrown from this library. Maybe check your nginx conf and make sure the route is properly handled by lua-resty-acme not other routes? You can add a different access_log in /.well-known/acme-challenge location block to make sure the request is hitting the correct location block.

from lua-resty-acme.

elvizlai avatar elvizlai commented on July 1, 2024

@elvizlai I can't think of a place where 501 is thrown from this library. Maybe check your nginx conf and make sure the route is properly handled by lua-resty-acme not other routes? You can add a different access_log in /.well-known/acme-challenge location block to make sure the request is hitting the correct location block.

Same config worked a week ago, but now it failed. Maybe Let's encrypt changed?

server {
    listen 80;
    listen 443 ssl http2;

    server_name xxx.yyy.com;

    ssl_certificate     cert/default.crt;
    ssl_certificate_key cert/default.key;

    ssl_stapling off;

    ssl_certificate_by_lua_block {
        require("resty.acme.autossl").ssl_certificate()
    }

    location /.well-known {
        content_by_lua_block {
            require("resty.acme.autossl").serve_http_challenge()
        }
    }

    if ($scheme != "https") {
        return 301 https://$host$request_uri;
    }

    proxy_http_version 1.1;
    proxy_set_header HOST $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    location / {
        proxy_pass http://172.17.0.1:8090;
    }
}

from lua-resty-acme.

elvizlai avatar elvizlai commented on July 1, 2024

Opps, maybe pagespeed related, I will try to confirm this.

from lua-resty-acme.

elvizlai avatar elvizlai commented on July 1, 2024

Sorry for my mistake, the pagespeed cause that issue.

from lua-resty-acme.

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.