Questions tagged [lighttpd]

Lighttpd ("lighty") is a fast open source web server, optimised for speed critical environments

Lighttpd (pronounced "lighty") is an open source web server optimised for speed critical environments, which is standards compliant. It attempts to be lower memory footprint, and more CPU efficient than other web servers, and is often simpler to configure. Initially it was targetted at static content, but now it is widely used for both static content and hosting CGI, PHP, Ruby, Python etc code.

More information is available on Wikipedia

596 questions
0
votes
1 answer

Apache2 .htaccess rewrite rule to Lighttpd

could you help me to convert this rewrite rule from apache2 to lighttpd RewriteEngine on RewriteBase / RewriteCond %{HTTP_REFERER} !^http://my-site\.net/ [NC] RewriteCond %{HTTP_REFERER} !^http://www\.my-site\.net/ [NC] RewriteCond %{HTTP_REFERER}…
Chris
  • 113
  • 1
  • 5
0
votes
1 answer

Lighttpd referer issue

I have a problem to block files from accessing from different domains as my one. I have added to my lighty config in the "virual host" following: $HTTP["referer"] !~ "^($|http://www\.my-site\.net)" { url.access-deny = ( "" ) } but anyway the…
Chris
  • 113
  • 1
  • 5
0
votes
2 answers

Debain server "HTOP": shows several PHP-CGI instances

I'm new to Debian servers, (Linux VPS in general) and have a question about /usr/bin-php-cgi showing up several times as "tasks" when I run the HTOP "app." I couldn't find any information online about why there are several php-cgi tasks running.…
Patrick Nommensen
0
votes
1 answer

How to log slow HTTP responses

How does one log slow HTTP responses? I'm using Lighttpd, but could switch to another webserver if necessary. Apache can log response times, but not conditionally, it seems. http://httpd.apache.org/docs/2.4/mod/mod_log_config.html Apache Bench and…
XTF
  • 175
  • 2
  • 8
0
votes
2 answers

How to increase simultaneous requests for LIGHTTPD

I have Red Hat 6 and I've installed Lighttpd + MySQL and at the moment in getting 500 internal server error, logs shows that I have arround 2000 requests / sec, while as soon as requests drop below 1000 websites starts to load again. I wonder how…
ProDraz
  • 231
  • 1
  • 4
  • 10
0
votes
1 answer

Rule of thumb in RAM estimate for static pages?

Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites I've seen tutorials saying they can run decent websites on 64MB RAM (Debian/Lighttpd/PHP/MySQL) however it's not clearly defined how much hits/traffic a "decent"…
IMB
  • 511
  • 2
  • 7
  • 13
0
votes
2 answers

lighttpd redirect certain links to certain urls

Could someone tell me how / why is this redirect not working? $HTTP["host"] =~ ".*\\.mydomain\\.com" { url.redirect = ( "/index\.php\?pg=mysql" => "http://mydomain.com/lean-webhosting/mysql-clustering/", …
Valentin Bajrami
  • 4,045
  • 1
  • 18
  • 26
0
votes
1 answer

lighttpd+apache

So lately I heard about people running apache and nginx together, nginx for static content and apache for dynamic. Can the same be done with lighttpd and apache?
teeiger
  • 3
  • 2
0
votes
1 answer

Making lighttpd redirect from www.example.com to www.example.com/cgi-bin/index.pl

What the title says.. www.example.com is defined in lighttpd.conf as a virtual host: $HTTP["host"] =~ "(^|\.)example.com$" { server.document-root = "/usr/www/example.com/http" accesslog.filename =…
Jarmund
  • 535
  • 2
  • 6
  • 17
0
votes
3 answers

Can't access a local site site on LAN

I have lighttpd setup on a machine (say ip is 10.107.105.13) with following details. inet addr : 10.107.105.13 Bcast : 10.107.111.255 Mask : 255.255.240.0 I can access my site on this computer by using firefox http://localhost/index.html. Now I am…
Dilawar
  • 119
  • 6
0
votes
1 answer

Confused! php-cgi opened (and didn't close) a UDP "connection" ...but isn't UDP connectionless?

This question is more for my own education than to solve any problem. I am running a VPS at linode w/ lighttpd and PHP 5.3.13 via fast-cgi. When I list internet connections, I get this strange creature: # lsof -i COMMAND PID USER FD TYPE…
0
votes
2 answers

load balanced server farm in php with sql

What is the best configuration for a load balanced server farm for a high demand download web page that uses php and mysql. I have servers that currently use centos with lightppd. Has anyone got experience of what software is the best etc, or a…
0
votes
1 answer

lighttpd CPU utilization fails to decrease when load reduced

I have a lighttpd server which easily handles about 800 concurrent connections. But there seems to be a problem: When the number of users grows, the CPU utilization grows as well, until a limit is reached at about 90%. The problem is when the number…
0
votes
1 answer

Should I switch from lightty to nginx?

I've been using lightty/lighttpd for about two years, and have had no problems. I occasionally have to restart lighttpd to regain some memory but other then that I love the config files and how minimal config is necessary to make everything…
Kyle
  • 351
  • 1
  • 2
  • 8
0
votes
1 answer

Lighttpd can not start when including mod_rewrite

Here is my server modules list (modules.conf), its working without any problems, and lighttpd is running correctly while using this list: server.modules = ( "mod_access", # "mod_alias", # "mod_auth", # "mod_evasive", # "mod_redirect", # …
Cyclone
  • 260
  • 1
  • 6
  • 20