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

learn more… | top users | synonyms

1
vote
1answer
103 views

Configure mod_rewritte for two hosts in Lighttpd

I have a problem configuring mod_rewrite in two hosts with Lighttpd. I have one which is a newer version of the old. The old doesn't use mod_rewrite, while the new one does. However, the problem is ...
0
votes
2answers
3k views

lighttpd: backend is overloaded

I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: (mod_fastcgi.c.2900) backend is overloaded; we'll disable it for 2 seconds and send the request to ...
1
vote
1answer
442 views

Why does lighttpd or Apache2 proxy change my URL when accessing index.html?

I have a little awkward setup with a Apache 2 webserver being the gatekeeper and proxying traffic based on the incoming domain: <VirtualHost *:80> ServerName example.org RewriteEngine On ...
0
votes
2answers
165 views

Multiple SSL based IPs on lighttpd

I have lighttpd as web server and on it I have installed IP-based SSL certificates. I want to have a way to have multiple SSL certificates on each new IP that the server may get. For example, at the ...
1
vote
1answer
715 views

How to return 410 with lighttpd

I have a subdomain with service I am going to kill. I'd like to use 410 to mark it as such. Is there a way to do that with lighttpd without resolving to mod_magnet and lua scripts?
1
vote
1answer
1k views

lighttpd virtual hosting configuration

I need help setting up virtual hosting in lighttpd. i have the lighttpd default webpage in /var/www/lighttpd dir and i have created other dirs for my other websites /var/www/web1.com/public_html and /...
2
votes
1answer
267 views

Lighttpd QUERY_STRING escape properly

Problem is to escape query string in Lighttpd: This is url: domain/publisher/adframe-34.html?tag=xzzx&gg=yy&uu=121 and this is lighty rule: adframe-([1-9][0-9]*)\.html\?(.*)" => "ad/...
0
votes
1answer
1k views

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: server....
0
votes
1answer
321 views

lighttpd: weird behavior on multiple rewrite rule matches

I have a 20-rewrite.conf for my php application looking like this: $HTTP["host"] =~ "www.mydomain.com" { url.rewrite-once += ( "^/(img|css)/.*" => "$0", ".*" => "/my_app.php"...
0
votes
1answer
453 views

mod_access for lighttpd causes a 403 error for all POST requests

I have found on my debian server that running the lighttpd module mod_access is causing the server to response with a 403 to all POST requests. It's very odd as I have two servers, one is running as ...
1
vote
1answer
304 views

mono 3.0.2 + xsp + lighttpd delivers empty page

I needed MVC 4 (and basic .NET 4.5) support so I downloaded mono 3.0.2 and deployed it on an lighttpd 1.4.28 installation, together with xsp-2.10.2 (was the latest I could find). After going through ...
2
votes
2answers
1k views

How to optimize Lighttpd to host really small, static image files that do not change over time?

This Lighttpd server will need to very quickly serve different image files (say about 500 requests per second). Each image file is about 50-70kb and there's only going to be about 1000 or so of them. ...
2
votes
1answer
260 views

LighTPD and PHP not working if outside of LightTPD folder

I need to set up a simple web server with PHP on Windows XP that a number of different people will use for local testing. I'm using LightTPD 1.4.30-4-IPv6-Win32-SSL and PHP 5.2. So far I've created ...
2
votes
2answers
433 views

FastCGI on lighttpd no data received

I have a simple FastCGI script: public static void main (String args[]) { int count = 0; while(new FCGIInterface().FCGIaccept()>= 0) { count ++; System.out....
3
votes
1answer
1k views

redirecting HTTPS requests to http in lighttpd

I have a lighttpd server running which has an SSL certificate installed. I would, due to certain reasons, like to forward all https: //www. requests to http: //www. My lighttpd code looks like as ...
1
vote
0answers
245 views

How to block urls that request for robots.txt in lighttpd?

We have a dedicated development server which runs only test PHP applications on a public network. We have setup session-based authentication for the site. The issue we have is there are lots of 404s ...
0
votes
1answer
229 views

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\...
2
votes
1answer
4k views

SSL Certificate for local web server

Is it at all possible to create a self-signed certificate for use on multiple machines on a local network which would stop the browser complaining it is not a trusted site? We have a product which is ...
1
vote
0answers
146 views

Deploy multiple django instances on one Host

I am trying to setup multiple Django instances on one Host with lighttpd. My problem is to get Djangos FCGI working on subdirectories served by my Webserver. So my aim is the following: www.myhost....
1
vote
1answer
696 views

Blocking HEAD, DELETE, etc. with lighttpd

So I have lighttpd installed and the site it runs only needs to respond to GET requests. I was wondering how I can return 405 responses with Allow: GET headers to anything but GET requests using ...
0
votes
1answer
172 views

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)" {...
1
vote
1answer
83 views

Server won't reply to POST request

I'm working on a WordPress site that's served by two lighttpd backends behind an F5 load balancer. Previously, the site was served by a single lighttpd server behind a nginx reverse proxy, and ...
0
votes
2answers
258 views

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 ...
2
votes
1answer
1k views

PHP File Lister Sub Directory 404 Error on Lighttpd

I just installed lighttpd today and I am having issues with lighttpd always returning a 404 error on the sub directories. I am trying to install this (h5ai) and I've followed the directions to the ...
1
vote
1answer
907 views

vBulletin 5 + lighttpd url rewriting

I'm trying to get vBulletin 5 up and running under lighttpd but I'm having some problems with url rewriting. Here is the apache .htaccess provided by vBulletin. <IfModule mod_rewrite.c> ...
2
votes
1answer
2k views

Lighttpd proxy redirect by port

I'm really just starting out with lighttpd and I'm not sure how to configure this exactly. I'm wanting to take traffic and redirect to another server say "http://localhost/url_a/" and redirect the ...
1
vote
1answer
264 views

Enabeling PHP LDAP with Lighttpd

I'm experiencing some difficulties enabling LDAP in an Archlinux environment with Lighttpd (lighty) and PHP. I have downloaded and installed the php-ldap module, enabled it in php.ini and the phpinfo()...
1
vote
0answers
190 views

Lighttpd single subdomain Redirect/rewrite

This was originally asked on stackoverflow, but looking around here, I get a comfy feeling someone will know the answer. I am using lighttpd and would like to have the url path for one page show as ...
2
votes
1answer
2k views

lighttpd: Backend is overloaded + fcgi-server re-enabled + all handlers are down

We have a standard lighttpd deployment with PHP-CGI and our error logs are flooding with the following. This is causing a huge problem because we keep returning 500's to our clients: 2012-10-14 14:28:...
1
vote
0answers
2k views

Lighttpd - byte range request doesn't work. can't stream mp4

Am attempting to use the lastest flowplayer. (if it could work it would be pretty awesome btw) http://flowplayer.org One of the cool things about it is it uses the new HTML5 video element and ...
0
votes
1answer
97 views

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/...
1
vote
1answer
283 views

lighttpd: why using port >= 9000 does not work properly

I had a lighttpd server which works normally. I can access this website from outside(non-localhost) via http://vm.aaa.com:8080. Let's just assume that it's a simple static website, without php or ...
0
votes
2answers
126 views

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 ...
1
vote
3answers
853 views

Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user

What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications. The server ...
1
vote
0answers
283 views

Lighttpd with FastCGI configuration running ViewVC - rewrite problems

At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
1
vote
1answer
238 views

Lighttpd domain redirection

I would like to redirect domains on HTTP/HTTPS: http://old.com -> https://new.com https://old.com -> https://new.com I have to specify the SSL key/certificate for the old domain but I'm not ...
0
votes
1answer
77 views

Rule of thumb in RAM estimate for static pages? [duplicate]

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 ...
-1
votes
1answer
182 views

Lighttpd rewite url from specific client when using proxy

I need to send all CGI request to another server so I decided to use it with proxy. The problem is that I need to send the client IP to the server so I did the following configuration: $HTTP["url"] =...
0
votes
2answers
459 views

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-...
1
vote
2answers
1k views

Lighttpd and PHP generates error “No input file specified” after server.document-root is moved

I would like to use Lighttpd and PHP to provide a lightweight standalone web server on Windows. I downloaded all the latest builds yesterday and after an hour everything was working fine. Today, I ...
1
vote
1answer
419 views

Limit video streaming with lighttpd & Mod_h264 for x minutes

I'm running video streaming with lighttpd & mod_h264 on CentOS. Now, I want to set to client can only watch the movie for the first x minutes. Example: 10 minutes. Who can give me a solution for ...
-1
votes
1answer
169 views

Ubuntu: apt-get -f install lighttpd does not install

I'm trying to install lighttpd. When running sudo apt-get -f install , I'm getting this error : ~/dev/downlaod$ sudo apt-get -f install lighttpd Reading package lists... Done Building dependency ...
0
votes
1answer
59 views

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?
1
vote
0answers
703 views

Mumble Django via Nginx - config file infinitely loops in rewrite

I am having a bit of problem of configuring Nginx in place of Apache, so that it served Mumble Django to clients. I have vhosts configs for both Apache and Lighttpd - let me put them here side by side,...
4
votes
1answer
968 views

Lighttpd, Python, MySQLdb Python Module and Permissions

After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
2
votes
2answers
2k views

Installing lighttpd on CentOS 6.3 yum 404 errors

I have a CentOS 6.3 x86_64 server and I am trying to install lighttpd. I have installed the EPEL repo on the server using the following: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-...
3
votes
4answers
2k views

Why does a valid set of iptables rules slow my server to a crawl?

So I implemented some a different set of iptables rules and now if i enable them, then lighttpd simply takes forever to load php enabled pages(like wp). There is no load on the server, processor usage ...
2
votes
1answer
320 views

Lighttpd send Nagios command-line output instead of web interface

I recently installed Nagios on an EC2 instance running AmazonLinux (which is basically SuSe, to my understanding). I'm using lighttpd and mod_cgi to serve the web interface. When I navigate to a page,...
2
votes
2answers
243 views

SVN and 'lite' web servers

I plan to setup and configure SVN server. Think about 'lite' web servers, such as nginx or lighttpd. AFAIK nginx has only limited support for the DAV and does not have SVN module itself. Is it correct ...
2
votes
0answers
427 views

Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems

So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, ...