通过 Lighttpd 提供静态图像
我正在尝试构建图书馆应用程序。将 PDF 文档转换为 PNG 图像。 (每一页都是一个 PNG 文件)
因此服务器中将有数百万个 PNG 文件。 每秒的点击次数将超过 500,我必须为 png 提供服务。
1)我选择MemcacheDB来维护PNG 2)我选择Lightpd服务器来服务PNG的
问题: 1)我是Lighttpd的新手,不知道如何根据参数验证每个请求 我想提供 png 或拒绝访问。 lighttpd 可以使用什么编程语言? 2)我是否为我的要求选择了正确的选项?
我不想争论。 谢谢
I am trying to build library application. Converting the PDF documents to PNG images. (each page is one PNG file)
So there will be several millions of PNG's going to be there in the server.
Number of hits per second will be more than 500 and i have to serve the png's.
1) I am choosing MemcacheDB to maintain the PNG's
2) I am choosing Lightpd server for serving the PNG's
Question:
1) I am new to Lighttpd and don't know how to authenticate each request based on paramters
i want to serve pngs or deny the access. What programming language can be used for lighttpd?
2) Did i choose the right option for my requirement?
I don't want to be argumental.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
lighttpd 中最快的机制可能会使用标准的 http 身份验证支持:http://redmine.lighttpd。 net/wiki/1/Docs:ModAuth
如果您愿意做一些更自定义/复杂的事情,那么您需要将 FastCGI 与您选择的语言一起使用。
nginx 似乎是最近最受关注的网络服务器,它的服务速度可能比 lighttpd 更快,也可能不是。两者都尝试一下也没什么坏处。它还支持标准 http 身份验证: http://wiki.nginx.org/NginxHttpAuthBasicModule 你也可以如果您不想使用 http 身份验证,请使用 FastCGI 和您选择的语言。
Probably fastest mechanism in lighttpd would use standard http auth support: http://redmine.lighttpd.net/wiki/1/Docs:ModAuth
If you'd rather do something more custom/complex, then you would need to use e.g. FastCGI with your language of choice.
nginx seems to be the webserver getting the majority of the buzz lately, it may be able to serve faster than lighttpd, maybe not. It wouldn't hurt to try both. It also supports standard http auth: http://wiki.nginx.org/NginxHttpAuthBasicModule and you could also use FastCGI with your language of choice if you don't wish to use http auth.