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

learn more… | top users | synonyms

9
votes
3answers
8k views

Limit upload file size and redirect user to error page if limit exceeds

Is it possible to redirect user to file file too big page when POST request size exceeds specified limit? I am aware about max-request-size option, but it gives just static page that cannot be ...
1
vote
1answer
107 views

Issue when moving from Apache to Lighttpd

This might not be the right place, but we think its narrowed down to a Lighttpd config issue on our end, just cannot pinpoint. Asked in Virtuemart and Lighttpd forums with no luck. We have a live ...
2
votes
1answer
2k views

CGI Died, error log [closed]

I've been getting some 500 internal server errors on my website every so often, so I had a look at the error log. I am using lighttpd with Kloxo (lxadmin) installed. I have xcache enabled. ...
0
votes
1answer
455 views

How To Sync Files Across Load Balanced PHP Cluster

I just configured lighttpd web server to pass php-fcgi request to an external application server. The application server is running PHP 5.3 and spawn-fcgi. The problem is that all the web files need ...
0
votes
1answer
402 views

how can i tell if original requests are secure or unsecured using lighttpd infront of play framework?

My system is running the play framework through lighttpd. I need to know if the requests that are coming from Facebook are from https or http. Two questions: Is there any way that I can tell in my ...
0
votes
1answer
108 views

Where is Error Log in lighttpd?

I'm new to lighttpd, I just switched from Apache. How can I find the error log by SSH ? I've been getting some 500 Internal Server errors I want to troubleshoot.
0
votes
1answer
643 views

Set Response Header In Lighttpd Web Server

I am wondering how I send back a HTTP response of 501 (Not Implemented) in Lighttpd web server, when somebody tries to access our api.mydomain.com over non-ssl. The check we have, but don't see how ...
1
vote
0answers
64 views

Updating .po files without restarting lighty

We are running PHP with gettext on the lighttpd web server. When we update the .po/.mo files with new translations, we have to restart lighty for the new translations to appear. Is lighty caching the ...
0
votes
2answers
257 views

Expire module configured to 0, but swf is allways loading from cache

I am trying to load an swf flash file from my lighttpd web server. expire.url "/static/swf" => "modification plus 0 seconds" However, when I reload from the web browser, chrome seems to load ...
0
votes
1answer
434 views

Method to proxy Subversion repo in lighttpd with https to the outside world

HTTPS is HTTP over SSL. I have an Apache server running on a machine in order to publish a Subversion repository (read-only). Apparently there is no direct solution to export the repository using ...
1
vote
2answers
375 views

mod_compress not writing anything to the compress folder

I'm using lighttpd with fastcgi, just enabled mod_compress but its not writing anything in the directory that i have set i.e. /tmp/lighttpdcompress/ I've given its ownership to lighttpd and also set ...
2
votes
1answer
2k views

optimize nginx for large file downloading

Hey, I'm wondering what are some general options I should look into for optimizing an nginx server for large file downloading (typically 100mb to 6gb). I just migrated from lighttpd and I'm noticing ...
4
votes
4answers
1k views

How to set an environment variable for a process spawned by the webserver?

In my setup (debian etch, lighttpd), one one my websites is calling a program for some image manipulation via PHP, I think. I'd like to change the behavior of this program by setting an environment ...
0
votes
1answer
2k views

Reverse Proxy redirection based on hostname

Here's my setup: Windows Server (2003) receives all traffic for *.mydomain.com, which (up to now) redirects all incoming port 80 traffic to a Linux VM (using VMWare virtual network manager). I now ...
0
votes
1answer
2k views

Need help, failed to start Lighttpd

I following this tutorial corectly : http://howtoforge.com/installing-lighttpd-with-php5-and-mysql-support-on-fedora-14 But now i got this error : [root@fedora lighttpd]# /etc/init.d/lighttpd ...
0
votes
1answer
114 views

Lighttpd equivalent of Apache Files directive?

I'm trying to convert some rules and settings from Apache to lighttpd but i'm stuck with this Files rule: <Directory /var/www/html/attachments> <Files ~ "\.(php\d*|cgi|pl|phtml)$"> ...
0
votes
1answer
511 views

How to redirect to localhost home on entering any non existing url?

I am working on an intranet application running over Lighttpd server, it is hosted on 192.168.0.1 and there is nothing else on server. I want to redirect any page request made to server (e.g.: ...
6
votes
1answer
6k views

Best sysctl.conf configuration for high load - extremely busy content streaming server

What is the best sysctl.conf configuration for a high load, extremely busy content streaming server ? The server fetches the content from remote servers like amazon, s3, etc. then uses php to ...
3
votes
1answer
1k views

Apache starts automatically on Ubuntu, needs to be stopped to restart lighttpd

I've some issues with my webserver's Apache and lighttpd on Ubuntu 9.04. I use lighttpd only and I've stopped Apache on Ubuntu. For some reason, starting a few days ago, Apache starts to run and I ...
7
votes
5answers
9k views

Fastest web server for serving static content

I'm optimizing our system for some faster static content delivery, and was wondering if anyone has any proper experience with the fastest web servers out there for such a purpose. From the three main ...
1
vote
1answer
591 views

Will using Apache's ProxyPass directive on persistent Ajax connections alleviate the connection limit error?

I've got some javascript that keeps a persistent Ajax connection open for each client, and I know that this can cause some serious issues for apache, but not for lighttpd. One thing I learned from ...
1
vote
1answer
1k views

lighthttpd proxy reverse proxy

I have been looking for good easy to use examples for lighthttpd proxy reverse proxy. My idea is to take domain example.com and forward/reverse proxy to ip 192.168.0.1 port 80, whether it is a tomcat ...
1
vote
1answer
488 views

Lighttpd redirect to tomcat app

I've just set up a lighttpd server which i want to use to serve multiple applications on different domains. I've managed to make traffic to a spesific domain to be redirected to an application ...
2
votes
2answers
377 views

Using logical operators in lighttpd.conf

I have two sub-domains which I want to redirect to the same directory: $HTTP["host"] =~ "sub1\.example\.com$" { server.document-root = "/home/adam/html/sub_domain" } $HTTP["host"] =~ ...
2
votes
6answers
17k views

Which apache/mysql/php package is best for windows? [closed]

I have tried appservnetwork, was the best so far, but I haven't seen them do an update in ages, EasyPHP is just slow to load always. Wamp and Xamp, all put in their description that is not for ...
0
votes
1answer
781 views

Segmentation fault lighttpd

Hey guys, I can't figure this out, when I add the fastcgi module to lighttpd when I try to connect to a php page, I get a segmentation fault error. Nothing is in the error log, and nothing else is ...
3
votes
2answers
492 views

Combine lighttpd configs for IPv4 and IPv6

My lighttpd.conf includes the following lines: $SERVER["socket"] == "188.40.236.66:443" { ssl.engine = "enable" ssl.ca-file = "/etc/lighttpd/ssl/startcom.ca.pem" ssl.pemfile = ...
1
vote
2answers
1k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
0
votes
2answers
456 views

Reverse proxy server that lets you explicitly define mapping based on request URI?

I'm looking for a reverse proxy solution which either: a) Let's me explicitly define which requests go to which servers based on a regex (or some other similar way of defining that certain URL ...
1
vote
2answers
217 views

High request time

I've got high execution time of HTTP request (ex. 42KB in 13s). I'm using haproxy to load balance traffic. Static files are server by lighttpd behind varnish accelerator. So... it should be served ...
2
votes
1answer
4k views

Lighttpd: redirect any request to index.html

I'm trying to send any request to the index.html with lighttpd in order to prevent 404 but I'm not smart enough because either the redirect matches itself or, for calls to subdirs, although the ...
2
votes
2answers
1k views

lighttpd: Does it still have memory leak and CPU consumption issues?

This page here compares nginx and lighttpd: http://www.wikivs.com/wiki/Lighttpd_vs_nginx There are numerous reports of memory leaks unfixed for years as well as severely worse CPU consumption (2% ...
1
vote
1answer
3k views

500 Internal Server Error with PHP application

I have written a PHP application using Windows and XAMPP. I've been trying to run it on Ubuntu 10.10 with Lighttpd 1.4.26. Parts of the application work fine, but whenever I try to log in, I get a 500 ...
1
vote
2answers
2k views

Lighttpd broken when serving from Virtualbox shared folder [closed]

I've got a lighttpd web server set up on a Debian 6 guest in Virtualbox 4. I've got the www directory in a virtualbox shared folder, so that I can develop a website in the Windows host. My problem is ...
0
votes
1answer
314 views

Lighttpd, PHP, WordPress and permissions

I'm wondering why WordPress isn't able to install or update themes and plugins. I can upload files thought. This is a permissions problem, even when I CHMOD 0777 on the wp-content/themes and ...
1
vote
0answers
1k views

Lighttpd 403 Errors on HTML and PHP pages

I installed lighttpd on CentOS 5.5 64-bit. Everything seems fine and running except I cannot get past 403 errors on both HTML and PHP pages. I have used CHMOD and CHOWN, changed ownership in the ...
5
votes
1answer
2k views

How can I enable http auth in lighttpd for all directories except one?

I am trying to authenticate access to everything in webroot (/) except anything that resides in a particular directory (/directory/) and I've tried both of these options to no avail: $HTTP["url"] =~ ...
2
votes
0answers
717 views

lighttpd + FastCGI + Mono not working with evhost enabled

I've started the migration of a Windows VPS to linode.com, choosing lighttpd over nginx and apache to host some sites built on asp.net mvc, and I'm stuck with what I think is a "document-root" ...
1
vote
1answer
136 views

Only enable SSL if equal to x remote ip

Is it possible to only enable SSL on lighttpd by checking if the remoteip requesting a page is x or x or x ip? I know this can be done in nginx, but I am trying lightTPD at the moment.
0
votes
3answers
2k views

Lighttpd not starting - no error

I recently installed Lighttpd on Ubuntu Server 10.04 x86_64 and created several websites. What I do is include /etc/lighttpd/vhost.d/*.conf and put a configuration file for each website in that ...
0
votes
2answers
998 views

Allow only certain files to be exposed to the web on Lighttpd?

Just installed it on my linux desktop, and I only want 1 or 2 files accessible to the outside world. Everything else should only be accessibly via http://localhost/ for various privacy/security ...
9
votes
1answer
14k views

Apache MPMs - Worker vs Prefork

I'm trying to figure out what which is the best Apache MPM I can install on my VPS. I saw some benchmarks and MPM Worker seems to perform better than the Prefork one but for some reason everyone seems ...
1
vote
0answers
415 views

lighttpd 1.5 reverse-proxy to trac

I'm running lighttpd 1.5 freshly compiled off svn. I have a trac daemon listening on port 8000 and I want to proxy all requests matching ^http://xx.xx.xx.xx/trac(*.) to that daemon. Here is what it ...
0
votes
1answer
1k views

lighttpd fails while enabling mod_proxy

i am trying to set up an server with lighttpd and tomcat my conf is below server.modules = ( "mod_access", "mod_alias", "mod_accesslog", ...
0
votes
1answer
1k views

phpmyadmin on lighttpd gives me a 403 forbidden need help

Whats the problem: When I goto //localhost/phpmyadmin I get what I would get if I did //localhost/, I'm using both http: and https:. What did I do, that changed it: I simply reinstalled lighttpd. ...
1
vote
1answer
161 views

Lighttpd Rewrite

I have an issue with Lighttpd Rewrite and static files. Here is my rewrite syntax: url.rewrite = ( "^/(.*)\.(php|css|js|jpg|png)$" => "$0", "^/(.+)$" => "/router.php?url=$1" ) All ...
1
vote
1answer
685 views

How to host a fossil repository with lighttpd?

I have a fossil project and want to host it in a server of mine. I'm using lighttpd to serve the git interface for some other projects so using apache or nginx is out of the question. I have ...
21
votes
1answer
4k views

Python CGI on Amazon AWS EC2 micro-instance — a how-to!

How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI? Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 ...
0
votes
1answer
35 views

Add minType on specific folder?

I installed lighttpd-1.4.28 to serve static files,but I want to add mintype (html) on specific folder not all document root how, can do it ?
2
votes
1answer
291 views

lighttpd and mod_proxy with PHP

I am trying to create a rather complex setup using a combination of lighttpd, some custom Ruby proxies, rails/ramaze (running on Thin), and PHP. Currently it is setup like this: A browser issues the ...