我知道这是可能的lighttpd,但有没有办法达到同样的事情与Apache或更好的,Nginx?
我试图有多个域名。 遵循Web的指示,并在lighttpd.conf文件中添加行: $ HTTP [“host”] =〜“(^ |。)example.com $”{server.document-root =“/var/www/example.com”} 但是当我重新启动服务器时出现错误: (configfile.c.859)source:/etc/lighttpd/lighttpd.conf line:37 pos:13variables名无效字符2012-02-15 07:38:57:(configfile.c.915)configfileparsing器失败:=〜 我到处都有人物〜我不知道为什么现在不能parsing它们。 我正在使用Debian 6
我有一个很大的问题。 我刚刚升级到一台运行Plesk 10的新专用服务器,而Ubuntu 11.04和我的脚本无法在CGI模式下运行file_get_contents或curl到外部URL。 allow_url_fopen在正确的php.ini文件中设置为On,但仍然出现以下错误。 file_get_contents(http://www.google.com): failed to open stream: Permission denied curl请求返回false这个: function get_data($url) { // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, false); // grab URL and pass it to the browser $data = curl_exec($ch); // close cURL […]
我正在使用lighttpd web服务器和mod_write并有一个简单的主机匹配expression式: $HTTP["host"] =~ "domain\.com$" { } 问题是这是匹配test.domain.com以及。 我如何修改expression式只匹配http://domain.com,但不是任何子域,如test.domain.com? 谢谢。
我想使用Lighttpd和PHP在Windows上提供轻量级的独立Web服务器。 我昨天下载了所有最新版本,一小时后,一切正常。 今天,我将server.document-root从server_root +“/ htdocs”更改为server_root +“/../ htdocs” ,并相应地调整了我的目录结构。 重新启动一切后,当我尝试访问php页面时,在Web浏览器中看到“没有指定input文件”。 这是我的configuration文件。 当然,我试着玩cgi.fix_pathinfo和fastcgi.server,但我似乎无法find正确的设置。 有任何想法吗? php.ini中 cgi.fix_pathinfo=1 extension_dir = .\ext extension = php_pdo_sqlite.dll date.timezone = UTC log_errors = On error_log = ..\logs\php_error.log lighttpd.conf ## modules to load # at least mod_access and mod_accesslog should be loaded server.modules = ( "mod_access", "mod_accesslog", "mod_fastcgi", # "mod_cgi", "mod_status" ) #### include […]
我们有一个PHP-CGI的标准lighttpd部署,我们的错误日志充斥着以下内容。 这导致了一个巨大的问题,因为我们不断向客户返回500的: 2012-10-14 14:28:38: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 36 2012-10-14 14:28:38: (mod_fastcgi.c.2764) fcgi-server re-enabled: 0 /tmp/php-7735.socket 2012-10-14 14:28:39: (mod_fastcgi.c.2764) fcgi-server re-enabled: 0 /tmp/php-7735.socket 2012-10-14 14:28:40: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the […]
我今天刚刚安装了lighttpd,并且在使用lighttpd时总是在子目录上返回一个404错误。 我试图安装这个 (h5ai),我已经按照后者的方向。 这是lighttpd的configuration中的一行 index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", "lighttpd/index.html", "_h5ai/server/php/index.php" ) 从我所了解的这个configuration是,它将加载所有上述目录,并search索引文件中的任何一个,并在请求时显示它。 所以我没有看到这个问题。 主页工作正常:www.example.com然而,正如你可以在网站上看到,当你去一个子目录,你会立即得到一个404错误。 这个目录确实存在,这很奇怪。 这是我的lighttpd.conf # lighttpd configuration file # # use it as a base for lighttpd 1.0.0 and above # # $Id: lighttpd.conf 8860 2008-08-05 10:56:16Z engy $ ############ Options you really have to take care of #################### ## […]
这Lighttpd服务器将需要非常快速地提供不同的图像文件(每秒约500个请求)。 每个图像文件大约50-70kb,只有大约1000个左右。 设置一个高效的lighttpd服务器,最好的方法是什么? PD。 我能够findModMemCache,但所有的信息似乎已经过时了。
这是为Apache: <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">标题集caching控制“max-age = 290304000,public” </FilesMatch> 我如何做lighttpd?
我正在写一个PHP站点,预计将有大约200-300个并发用户浏览它。 当初始化应用程序将加载大约30个PHP类,10个可能15个图像和几个CSS文件。 所以我的问题是,除了优化我的代码和使用apc / eaccelerator为PHP)我还能做什么(尽可能接近这些并发用户数)? 目前我们还没有select要托pipe的网站的服务器,但最有可能的将是一个VPS双核+2或4GB内存。 这样的服务器可以处理这个负载吗? 另外我怎么能自己testing它,并确保它能够处理它?