我已经build立了像这样的configuration: $HTTP["host"] =~ "(^|\.)domain1\.com$" { fastcgi.server = ( "/domain1.py" => (( "socket" => "/tmp/fastcgi.socket", "bin-path" => "/home/domain1/serveV03.py", "max-procs" => 1, "bin-environment" => ( "REAL_SCRIPT_NAME" => "" ), "check-local" => "disable" )) ) server.document-root = "/home/domain1" url.rewrite-once = ( "^/favicon.ico$" => "/static/favicon.ico", "^/static/(.*)$" => "/static/$1", "^/(.*)$" => "/domain1.py/$1" ) } $HTTP["host"] =~ "(^|\.)domain2\.com$" { fastcgi.server = […]
有人能告诉我如何/为什么这个redirect不起作用? $HTTP["host"] =~ ".*\\.mydomain\\.com" { url.redirect = ( "/index\.php\?pg=mysql" => "http://mydomain.com/lean-webhosting/mysql-clustering/", "/index\.php\?pg=cloud_uitleg" => "http://mydomain.com/lean-webhosting/cloud-uitleg/" ) } 有人有任何想法? 谢谢!
我有Red Hat 6,我已经安装了Lighttpd + MySQL,并且在获得500个内部服务器错误的时刻,日志显示我有2000个请求/秒,而一旦请求降到1000个以下,网站又开始加载。 我想知道如何增加这个限制。 我的机器有20个CPU,128GB内存,所以我怀疑是机器问题:S 我使用FastCGI,而网站是PHP语言。
我在我的debian服务器上发现,运行lighttpd模块mod_access导致服务器响应403所有POST请求。 这是非常奇怪的,因为我有两台服务器,一台正在运行,另一台服务器一直在返回这些403 。 他们运行lighttpd和php相同的configuration。 我的lighttpd.conf是: https : //gist.github.com/4269500 还有一个自定义的conf: https : //gist.github.com/4269508 我已经打开服务器的请求,直到我得到这个修复,工作的服务器是http://mercury.isitup.org/和失败的是http://venus.isitup.org/ 。 在解决这个问题之后, mod_access解决了这个问题,我把所有的lighttpdconfiguration文件 ( docs )都加了进去。 禁用每行我发现没有帮助,导致我认为这可能是一些默认行为(或错误?)… 有没有人遇到过,或知道什么configuration的价值,我错了? 版本 Debian: Debian GNU/Linux 6.0.6 (squeeze) Lighttpd: lighttpd/1.4.28 (ssl) PHP: PHP 5.3.19-1~dotdeb.0 with Suhosin-Patch (cli) Lighttpd论坛上的交叉post http://redmine.lighttpd.net/boards/2/topics/5431 parsing度 使用lighttpd -p -f /etc/lighttpd/lighttpd.conf并查找仍旧加载的旧值。 原来没有syslinks,而是完整的文件,而不是启用conf。
我与我的虚拟主机使用正则expression式有问题。 当我使用下面的代码,我得到一个404没有find: $HTTP["host"] =~ "(^|\.)example\.com$" { … } 但是,当我明确地将其设置为以下时,我可以访问我的网站: $HTTP["host"] == "example.com" { … } 有谁知道这是为什么发生? 文档相当稀less。
我试图从我的网站上设置一个文件的htaccess保护。 我已经将以下代码粘贴到05-auth.conf中 $HTTP["url"] =~ "^/www/hosts/domain" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd" auth.require = ( "/file.php" => ( "method" => "basic", "realm" => "Please enter your Password.", "require" => "valid-user" ), ) } ..和lighttpd重新启动后,我看不到任何login窗口。 这个configuration有什么问题?
尝试了几个小时,但似乎无法得到我的lighttpdconfiguration正确的语法。 作为最后的手段,我现在要求服务器故障的configuration:P 我正试图让lighttpd服务器托pipetrac,并保持php在同一时间工作。 我包含configuration文件“fastcgi.conf”,其中包含以下内容: server.modules += ("mod_fastcgi") index.file.names += ("index.php") fastcgi.server = ( ".php" = > ("localhost" = > ( "bin-path" = > "/usr/bin/php-cgi", "socket" = > "/tmp/php-fastcgi.sock", "max-procs" = > 4, # default value "bin-environment" = > ( "PHP_FCGI_CHILDREN" = > "1", # default value ), "broken-scriptfilename" = > "enable" )), "/trac" = > […]
我search周围,找不到解决scheme。 我不确定如果我使用正确的术语。 我正在使用lighttpd(1.4.33),并希望去http://support.example.comurl,并显示example.com/support的内容 我在想这是一个反向代理。 任何帮助表示赞赏。
我正在使用lighttpd v1.4.35,并且我开发了一个简单的网页,其中包含一些要testing的链接。 点击后,我注意到错误日志增加太快 。 在/etc/lighttpd/lighttpd.conf我有server.errorlogpath设置为: server.errorlog = "/myPartition/myFolder/error.log" 错误日志中的条目示例: 2015-02-19 13:41:28: (log.c.164) server started 2015-02-19 13:41:57: (response.c.339) — splitting Request-URI 2015-02-19 13:41:57: (response.c.340) Request-URI : /versions.php 2015-02-19 13:41:57: (response.c.341) URI-scheme : http 2015-02-19 13:41:57: (response.c.342) URI-authority : 172.22.196.7 2015-02-19 13:41:57: (response.c.343) URI-path (raw) : /versions.php 2015-02-19 13:41:57: (response.c.344) URI-path (clean): /versions.php 2015-02-19 13:41:57: (response.c.345) URI-query […]
我使用TCP上的php-fpm,因为我的意图是负载平衡它。 我应该在每台服务器上有PHP文件吗? 或者我可以将它存储在Web服务器(Lighttpd)? 我试图请求一个简单的PHP文件时收到404 Error 。 该文件存储在lighttpd服务器上,php-fpm在另一台机器上运行。 这是我在lighttpd的configuration: server.modules += ( "mod_fastcgi" ) fastcgi.debug = 1 fastcgi.server += ( ".php" => (( "host" => "10.5.0.3", "port" => "9000", "broken-scriptfilename" => "enable" )) ) 和PHP-FPM池configuration: [www] listen = 127.0.0.1:9000 user = www-data group = www-data pm = ondemand pm.max_children = 5 pm.start_servers = 2 pm.process_idle_timeout = […]