Comments (4)
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.
确实是这样的问题,我的nginx配置有问题,参考你的之后就可以了,但是现在的问题是你看我的验证码的图片,简直就是没有办法人眼识别了,这个是登录,你可以看看wjw,另外,可以看到网站运行时候的log么,我看你的网站验证码就可以人眼识别
from minos.
如果你运行minos是用nohup(也就是我README.md里讲的方法)运行的话,当前目录下会有nohup.out,这就是标准输出的日志。
你这种情况我也没遇到过。。。你看下你的库,PIL和wheezy.captcha的版本,
我的是
wheezy.captcha (0.1.44)
PIL (1.1.7)
因为我这边没法复现你那个错误,所以也没办法调试,你多试试看。
from minos.
还好,我解决了,你现在可以看到是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)
- user.htm bug HOT 1
- 非debug用途的assert使用
- 部分 bug HOT 3
- 项目不跟新了吗? HOT 1
- 作业再用mongo数据库的时候 没有涉及到认证库吗?
- 请问统计handler时间的log是怎么输出的 HOT 1
- requirements 优化 HOT 1
- ReadMe增加图片 HOT 1
- 程序运行后,管理员帐号没有自动创建 HOT 4
- 用户头像上传错误 HOT 4
- 最新版本文章查看bug HOT 3
- 能否增加金币支付模块? HOT 2
- 怎么用supervisor管理 HOT 5
- requirement.txt指定的豆瓣源路径有误 HOT 1
- Debian/Ubuntu下还需要安装openssl库 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minos.