Giter Club home page Giter Club logo

Comments (4)

phith0n avatar phith0n commented on September 17, 2024

404应该是你nginx没配好,正常情况下"/captcha.png"应该是请求到minos中,而不是由nginx返回结果,而你这个网站却是返回的nginx 404页面。
给你我的nginx配置供参考:

server
        {
                listen 80;
                server_name waf.science www.waf.science;
                index index.html;
                root  /home/wwwroot/minos;

                #error_page   404   /404.html;

                location ^~ /static/
                {
                        root /home/wwwroot/minos;
                        expires      30d;
                }

                location / {
                        proxy_pass_header Server;
                        proxy_set_header   Host $host;
                        proxy_set_header   X-Real-IP  $remote_addr;
                        proxy_pass         http://127.0.0.1:8765;
                }

                access_log  /home/wwwlogs/waf.science.log  access;
        }

from minos.

binbibi avatar binbibi commented on September 17, 2024

确实是这样的问题,我的nginx配置有问题,参考你的之后就可以了,但是现在的问题是你看我的验证码的图片,简直就是没有办法人眼识别了,这个是登录,你可以看看wjw,另外,可以看到网站运行时候的log么,我看你的网站验证码就可以人眼识别

from minos.

phith0n avatar phith0n commented on September 17, 2024

如果你运行minos是用nohup(也就是我README.md里讲的方法)运行的话,当前目录下会有nohup.out,这就是标准输出的日志。
你这种情况我也没遇到过。。。你看下你的库,PIL和wheezy.captcha的版本,
我的是

wheezy.captcha (0.1.44)
PIL (1.1.7)

因为我这边没法复现你那个错误,所以也没办法调试,你多试试看。

from minos.

binbibi avatar binbibi commented on September 17, 2024

还好,我解决了,你现在可以看到是OK了,我觉得是PIL的库的问题,参考你前面关于PIL的答复

ImportError: The _imagingft C module is not installed

我在nohup中看见ImportError: The _imagingft C module is not installed错误,导致captcha.png出现500的错误,按照你给出的方法,我解决了这个问题,我的步骤是:

  • killall main.py
  • easy_install Pillow
  • nohup ./main.py --host=* --port=8765 --url=http://* &

我觉得这个issue可以关闭了

from minos.

Related Issues (16)

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.