我通常在PHP代码,并始终使用Apache。 我已经开始了自己的网站,但我很快意识到,apache并不是最好的解决scheme:它使用每页15MB的内存,使一个小型服务器的内存不足200个并发用户。 现在,我正在查看其他解决scheme,并快速查看lighttpd或nginx,所以我的问题是: 使用上述两个较轻的选项,将使我的服务器能够处理更多的用户? 我所要求的原因也是因为,当我在这里input的网站数量不断增长时,服务器端将会出现一些严重的成本,这样,当我有2000个用户时,我需要10个networking服务器,这是不能接受的。 我也读了关于node.js和Express,这些是PHP的有效替代品吗? 我没有开发像聊天这样的实时应用程序,而更像是一个论坛。 提前致谢。
这里是我的服务器模块列表( modules.conf ),它的工作没有任何问题,而lighttpd正在使用这个列表正确运行: server.modules = ( "mod_access", # "mod_alias", # "mod_auth", # "mod_evasive", # "mod_redirect", # "mod_rewrite", # "mod_setenv", # "mod_usertrack", ) 问题出现了,当我想取消注释mod_rewrite模块: server.modules = ( "mod_access", # "mod_alias", # "mod_auth", # "mod_evasive", # "mod_redirect", "mod_rewrite", # "mod_setenv", # "mod_usertrack", ) 然后,当我想运行我的Web服务器时,我收到以下消息: / usr / local / lib / lighttpd / mod_indexfile,mod_access.so无法打开“/ usr / local […]
标题说什么 www.example.com在lighttpd.conf中定义为虚拟主机: $HTTP["host"] =~ "(^|\.)example.com$" { server.document-root = "/usr/www/example.com/http" accesslog.filename = "/var/log/www/example.com/access.log" $HTTP["url"] =~ ".pl$" { cgi.assign = (".pl" => "/usr/bin/perl" ) } } 但是,而不是由index-file.names(通常index.html,default.html等)中列出的文件,我希望所有的请求到虚拟主机的根被转发到/ cgi-bin / index特等。 什么是最简单/最好的方法呢? 这个需求是一个特例,只适用于这个虚拟主机。 是否有可能让那个特定的虚拟主机在头部发送redirect?
所以最近我听说有人在一起运行apache和nginx,nginx是静态内容,apache是dynamic的。 同样可以使用lighttpd和apache来完成吗?
我是Debian服务器的新手(一般Linux VPS),当我运行HTOP“app”时,有一个关于/ usr / bin-php-cgi几次显示为“任务”的问题。 htop截图http://i45.tinypic.com/34et46u.png 我在网上找不到任何有关为什么有几个php-cgi任务正在运行的信息。 这是正常的,预计? 在我看来,这是一个相当优化的服务器。 它运行Debian 6.0 32bit与lighttpd和PHP只有21MB的RAM。 谢谢。
我使用这个规则为我的代理: $HTTP["host"] =~ ".*" { proxy.balance = "round-robin" proxy.server = ( "/" => ( ( "host" => "127.0.0.1", "port" => 9000 ) ) ) } 因为我允许任何主机访问我的代理,所以我可以灵活地使用Amazon提供的URLtesting快照虚拟机。 问题是,我从错过的请求,如错误:manager.html,azenv.php,phpMyAdmin.translators.html,user.soapCaller.bs 我不知道这些是否真的都是从亚马逊….我假设azenv.php必须提供一些信息到AWS控制台。 什么是允许亚马逊检查主机,同时还允许我克隆和testing新主机的最佳方式?
查看运行在AWS负载平衡器后面的lighttpd上的服务器状态,我看到一些长时间(大约60秒)的请求,处于一个空白主机和空白URI的“读取”状态。 这是什么意思,这是什么要关心的?
我想把这个Lighttpd mod_rewrite变成Apache重写代码。 $HTTP["host"] =~ "^(i\.ylar\.se|puush\.me)$" { server.document-root = "/var/www/servers/i.ylar.se/" url.rewrite-once = ( "^/api/up" => "/upload.php", "^/([a-zA-Z0-9]+)$" => "/view.php?image=$1" ) } 感谢您的帮助!
我想configuration我的lighttpd来提供一些具有压缩function的静态文件。 这些文件是纯文本,但它们有.bin扩展名。 我有我的lighttpdconfiguration这些行: compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ("text/plain", "text/html", "application/x-javascript", "text/css") 它适用于css和js文件,但不适用于.bin文件。 下面是这些.bin文件的file -i的输出: 8_1.bin: text/plain; charset=us-ascii 我怎样才能确定这个文件的文件types相同的方式lighttpd呢?
这将是我第一个问题。 在我们公司,我们使用Squid作为内部网和互联网之间的代理。 现在我们需要一个软件包无法处理代理服务器 – 它需要直接访问互联网。 所以我的想法是使用lighttpd作为这个应用程序和互联网之间的“桥梁”。 因此,应用程序可以调用“mylighttpd:91234”,并看到例如Google页面 – 浏览器中的地址仍然是“mylighttpd:91234”。 这就是我的lighttpd.conf的样子: config { var.PID = 13793 var.CWD = "/home/testusr" var.log_root = "/tmp/lighttpd-log" var.server_root = "/tmp/lighttpd-data" var.state_dir = "/tmp/lighttpd-var/run" var.home_dir = "/var/lib/lighttpd" var.conf_dir = "/etc/lighttpd" var.vhosts_dir = "/tmp/lighttpd-data/vhosts" var.cache_dir = "/var/cache/lighttpd" var.socket_dir = "/var/lib/lighttpd/sockets" server.modules = ( "mod_indexfile", "mod_access", "mod_proxy", "mod_status", "mod_accesslog", "mod_redirect", "mod_rewrite", "mod_accesslog", "mod_dirlisting", "mod_staticfile", […]