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

587 questions
0
votes
1 answer

lighttpd + FCGI settings

I have decided to change my projects server backend from Apache+WSGI to lighttpd+FCGI. Now, everything work fine, except one annoying problem with DOCUMENT_URI, that receives my django server (started as ./manage.py runfcgi … ). It’s always contains…
vaddsm
0
votes
4 answers

Media server and Web server -- same IP address, how do I set this up?

Hi I'm trying to build a website where users can upload images. I am wanting to have a seperate media server to host the images, so that the web application can point to the images like mediaserver.mysite.com/test123.jpg And the…
SteveM
  • 101
  • 3
0
votes
1 answer

lighttpd Regex for automatic forwarding of subdomains

I have been looking round and I have not found a good way to automatically set the document root for domains automatically. For example: In the DNS, *.mydomain.com points to mydomain.com And in the lighttpd config it uses the host variable to find…
user191974
0
votes
2 answers

Memcached concurrency w/ lighttpd php

I'm having an issue with memcached. Not sure if it's memcached, php, or tcp sockets but everytime I try a benchmark with 50 or more concurrency to a page with memcached, some of those request failed using apache ab. I get the (99) Cannot assign…
Lom
0
votes
1 answer

Remove port from the url

How can I change the url http://localhost:8080 to http://localhost in a lighttpd server.. I searched on Google, but no luck.. My current .conf file server.document-root = "/mnt/sdcard/www" dir-listing.activate = "enable" server.errorlog =…
Niket Malik
  • 103
  • 1
  • 4
0
votes
2 answers

Global and per user php.ini

On my server (lighttpd + php-cgi) I have several php-cgi processes, each running as the user of the site it's serving. I know I can set a php.ini for each process through the PHPRC enviroment variable. Unfortunately this causes PHP to only read that…
Zeta Two
  • 101
  • 4
0
votes
1 answer

How would I set up my lighttpd.conf to serve a fastcgi app on a particular evhost virtual host?

I have evhost.path-pattern = "/home/lighttpd/vhosts/%2/public" When this pattern hits a certain host, let's say 'foo', I would like to use a fastcgi server. How do I configure just one of my virtual hosts? So for foo, it should use: fastcgi.server…
0
votes
2 answers

flask, lighttpd with fastcgi can't get it to work

i'm tring to deploy a simple flask script to a lighttpd server with fastcgi. this is the configuration file for lighttpd builded using the flask documentation http://flask.pocoo.org/docs/deploying/fastcgi/#configuring-lighttpd server.modules = ( …
kurojishi
  • 13
  • 1
  • 3
0
votes
2 answers

moodle with 10 threads is slow on lighttpd

I runnnig Moodle on Lighttpd on Centos 6 with 1G RAM. If I open 10 threads to moodle then moodle starting to be very slow. How I can to speed the server? I need to serve lot of users. I checked the memory with free command ande I have lot of free…
amiad
  • 161
  • 1
  • 1
  • 7
0
votes
1 answer

lighttpd: SMP workers causing performance degrade

I am trying to increase the performance of my lighttpd system by using SMP workers for multiple cores.It turns out that instead of improving the performance it is degrading it. I dont seem to understand why this is the case. The documentation…
auny
  • 101
0
votes
2 answers

Use lighttpd to access a website over a proxy

this is going to be my very first question. At our company we are using Squid as a proxy between our intranet and the internet. Now we have the need that a software package can't handle a proxy server - it wants direct internet access. So my idea…
mf6190
  • 1
  • 2
0
votes
2 answers

How does lighttpd/nginx determine filetype of a file? (which method?)

I want to configure my lighttpd to serve some static files, with compression capability. The files are plain text but they have .bin extension. I have these lines in my lighttpd configuration: compress.cache-dir =…
Reza Mohammadi
  • 217
  • 2
  • 6
0
votes
1 answer

epoll timeout configuration in lighttpd

Is there a configuration option to tune epoll timeout in lighttpd? I'm developing an embedded Linux (2.6) device, with lighttpd 1.4.30. And I'm observing the following issue: even when the system is idle and there are no web clients connected, the…
alexa
  • 3
  • 1
0
votes
2 answers

Lighttpd: htaccess protection does not work

i have tried to setup an htaccess protection of an file from my website. i have pasted the following code into the 05-auth.conf $HTTP["url"] =~ "^/www/hosts/domain" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile =…
hazelnut
  • 25
  • 1
  • 7
0
votes
1 answer

PHP processes keep overwhelming my server, eating up the CPU and making it lock up :(

I have a Debian Squeeze Lighttpd server with PHP and MySQL, and also with XCache and Varnish set up. I am quite new to this, but have tried as hard as I can to resolve this problem with no success. Whether I use Lighttpd or Nginx or XCache or APC…
Wave
  • 11
  • 1