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

learn more… | top users | synonyms

0
votes
1answer
7 views

Implement apache equivalent mod_rewrite functionality in lighttpd

Here's the mod_rewrite .htaccess file which is meant to work on Apache Servers for my web-app RewriteEngine On RewriteBase /cs200/tokens/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
0answers
30 views

How do I deploy a Python 3 Flask application on my Ubuntu VPS?

I know it really feels like this has been answered over and over, but I cannot seem to get a straight answer for this. I have developed a fairly simple Flask application in Python 3 - it is all in ...
1
vote
0answers
15 views

Hide index.php in subdirectory after rewrite (lighttpd)

How it is set up now I have a website which is setup for clean urls with apache mod_rewrite like this: RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteCond ...
3
votes
0answers
31 views

How to reverse proxy https with lighttpd?

I want to forward (reverse proxy) requests to https://secure.mydomain.com(:443) to my internal (HTTPS-)WebServer on port 8443 using Lighttp. Environment-Infos: My WebServer is a Tomcat running on ...
0
votes
0answers
35 views

lighttpd won't reload config, restart, or even stop

I made some changes to my lighttpd config file and wanted to force-reload but the changes weren’t reflected. I tried stopping and starting it, again with no effect. I then tried simply stopping it. ...
1
vote
0answers
19 views

How to run multiple dokuwiki instances on debian with lighttpd

I installed dokuwiki using the guide here. Everything was very easy and works great. Now I want to run a second wiki on the same server. I have read enough that I think I could hack it together by ...
2
votes
0answers
17 views

SSL for Lighttpd on different port Error 451 -

I'm not quite sure how to explain my problem but I'm going to try. I have lighttpd 1.4.35 on Centos 6.4 64bit behind a firewall. One of the virtual host is running using different port (8800) with ...
1
vote
1answer
23 views

multiple redirects on lighhttpd

I have a request to redirect multiple individual URLs to new individual URLs. This is the situation: **Old URL --> New URL** old.domain.org/ --> ...
0
votes
1answer
53 views

lighttpd: remove charset=UTF-8 from content type

lighttpd 1.4.31-4+deb7u3 automatically adds ;charset=UTF-8 to the content-type of .html and .php files. How can I remove that? Setting the content type in PHP itself does not help; lighttpd still ...
1
vote
0answers
8 views

Transfering from apache2 to lighttpd [closed]

I have my video sharing website in /var/www/html/ and i want to transfer from apache2 to lighttpd. The problem is that i want to use lighttpd with H264 Streaming Module, FLV Streaming Module and ...
0
votes
0answers
28 views

Monit http status monitoring behaviour

I am using monit v 5.15 and I try to set up monitoring for http status using the basic: if failed port 80 protocol http request "/status.fpm" status > 500 then alert And I ...
1
vote
1answer
36 views

Lighttpd: Redirect Domain but not Subdomain

In the past I had the following config on Lighted that would allow me to redirect some secondary domains I own to my primary domain. $HTTP["host"] =~ "superdomain\.net|superdomain\.eu" { ...
1
vote
2answers
110 views

413 - request entity too large in lighthttpd

When saving configuration settings in Magento I get "413 - request entity too large". We are running lighttpd. In php.ini memory_limit = -1 In lighttpd.conf server.max-request-size = 1000000 I have ...
1
vote
0answers
279 views

SSL: couldn't read X509 certificate from pem file lighttpd

I have installed ssl key in the past on my lighttpd and I've documented the steps I did to make sure that I can replicate it in the future. Well, I haven't touched the server for a while and I need ...
0
votes
0answers
59 views

How to set up a lighttpd modular config for several vhosts

I have a question regarding lighttpd best practices for vhosts setups. I wanted to set up a modular config for several vhosts with splitted config files to be able to enable/disable specific vhosts ...
1
vote
1answer
28 views

Fixing syntax errors in lighttpd.conf?

lighttpd newbie here... We're trying to set up lighttpd to host a local django app, kiosk-style. We intend to use wsgi for this, but we're having trouble figuring out the syntax for lighttpd's config ...
0
votes
0answers
30 views

lighttpd cgi.conf applying script path rather than documents path to returned data

I have an application that has both static html files and dynamic html file created using perl. The static pages are in a directory /usr/local/domain/htdocs with a number of sub-directories ...
2
votes
1answer
138 views

missing mod_ssl.so for lighttpd

I am trying to set up ssl (i.e. https) for my lighttpd web server running Debian 8 (Jessie). The relevant lines in lighttpd.conf are: server.modules = ( "mod_access", "mod_alias", ...
2
votes
1answer
35 views

404 when trying to shorten url for mediawiki (lighttpd)

I'm absolutely new at this, so please bear with me. I installed mediawiki on lighttpd with no problems, except that when I try to follow up redwerks instructions on how to shorten the urls for ...
1
vote
0answers
23 views

Converting lighttpd rewrite rules to apache

I'm in the process of converting an application from Unix to a Windows based infrastructure, one of the changes being made is utilizing apache instead of lighttpd for the web server. Most of this ...
0
votes
0answers
19 views

lighthttpd redirect to php script

How can I redirect requests from specific referer to a PHP file? I know how to block a image request: $HTTP["referer"] =~ ".*example\.zi.*" { url.access-deny = ( "" ) url.access-deny ...
0
votes
0answers
73 views

Inconsistent “unable to open database file” error from a CGI program using SQLite

I've been running a task program for a psychology experiment on my virtual private server with lighttpd 1.4.28 and Ubuntu 12.04. The experiment is a CGI program written in Perl using a Perl module I ...
1
vote
0answers
114 views

how do I redirect all http request to https on lighttpd? [closed]

I have an internal only website running on port 2222. This website uses it's own web server. I have setup lighttpd (config below) so I can access it from the outside via HTTPS on port 2223. I can ...
0
votes
0answers
73 views

Lighttpd + spawn-fcgi + perl = processes die randomly

We are running lighttpd with spawn-fcgi that spawns the following perl script: use strict; use CGI::Fast; use FCGI::ProcManager qw(pm_manage pm_pre_dispatch pm_post_dispatch); my $proc_manager = ...
0
votes
1answer
98 views

Disable logging ip adress to access.log in lighttpd

I have my webserver configured with lighttpd/1.4.31. About 80% of all entries in lighttpd's /var/log/lighttpd/access.log consist of my own ip address. I would like to disable my ip address logging ...
0
votes
0answers
52 views

Lighttpd ldap auth issue, massive performance loss (lighttpd 1.4.35-1.el6.x86_64 + RHEL 6.6)

I installed lighttpd for the first time from epel repo. I changed user and group for the webserver and ran the lighttpd server. I can download a page with 200 small images in about a second. If I ...
1
vote
2answers
1k views

Lighttpd static file server 403 forbidden error

I installed lighttpd on Debian Jessie for serving static files, I have a USB drive mounted at /media/storage, with /media/storage/www as my document root and my lighttpd.conf looks like this: ...
0
votes
1answer
121 views

lighttpd config file fails to parse $HTTP[“url”] conditional configurations though other ones work

I'm trying to set mimetypes for files at a specific path on my server, which is running lighttpd version 1.4.31 with SSL. I'm following this documentation of configuration: ...
1
vote
0answers
68 views

lighttpd: Translate nginx try_files to lighttpd

I'm struggling while translating the following nginx rule to lighttpd: try_files $1 $uri $uri/ /abcdefg/index.php$is_args$args; Can someone explain me, how this would look like in lighttpd? Thank ...
0
votes
1answer
227 views

Remove Lighttpd password auth for one path

I have a lighttpd server that I want to serve some files from. Unfortunately the server is currently set up to require password authentication and I want these files to be available publicly. How can ...
0
votes
0answers
38 views

Specifying charset in HTTP header with Lighttpd

I'm trying to specify a charset in the HTTP header of my Lighttpd-setup. I've tried numerous suggestions I've found throughout StackExchange's websites. 1. Tried looking in the mime.types file, so I ...
0
votes
0answers
136 views

Random speed on downloading files from Nginx/lighttpd

I've tried both lighttpd and nginx as webservers. All to very same result: In the morning, when the load is low, files are lighting fast to download. But later, when the load is a BIT more, server ...
1
vote
1answer
110 views

Lighttpd redirect non-www to www

I want to redirect all non-www to www on my domain. But when I use this code provided by some websites, and do a graceful restart of the lighttpd server, my website doesn't function anymore - at ...
0
votes
0answers
112 views

Why isn't Lighttpd caching files?

I've installed lighttpd 1.4.33 /not mod_cache patched/ on Ubuntu 14+. I've put .html file with embedded .unity3d on server (unity3d file is somewhere 50+ Mb.) lighttpd.conf do contain mod_expire, ...
1
vote
0answers
142 views

Lighttpd Proxy -> Apache SVN mod_dav_svn - Stuck via command line but works in browser

I have a confusing problem. I have installed a long time ago Apache 2.4 with mod_dav_svn to be able to access my repos via https urls. It all works fine with Apache only. Now i switched to lighttpd ...
0
votes
1answer
72 views

lighttpd: How to disable auth on second site

My setup has the current auth config. it forces authentication by any remote host. That's good. But I need to make an exception. auth_file="/etc/lighttpd.users" #if auth_file is not empty enable ...
0
votes
1answer
94 views

Lighttpd stops writing to access.log

I have this issue with my lighttpd installation where logging to access.log will cease once the default log-rotating software erases my access.log after copying it to access.log-YYYYMMDD. I have to ...
1
vote
1answer
52 views

bind9 + lighttpd: Accept all requests coming from certain name servers and reply with static page

So, I've this situation: A server (under CentOS) with a lot of domains with around 2 TB of data under them, and I'm migrating it all to another machine with faster I/O. The migration details / ...
2
votes
1answer
324 views

Dual stack Lighttpd without repeating the SSL configuration

I'm trying out Lighttpd and I've stumbled across a small but very annoying problem; the IPv6 configuration is a total mess and requires you to duplicate your SSL settings two times; see for yourself : ...
0
votes
2answers
55 views

Lighttpd error log increases too fast

I am using lighttpd v1.4.35 and I have developed a simple web page with some links to test. After some clicks I have noticed the error log is increasing too fast. In /etc/lighttpd/lighttpd.conf I ...
1
vote
2answers
400 views

lighttpd + PHP-fcgi slow response

We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi. Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file ...
1
vote
1answer
452 views

Error 500 / 503

I get an Error 500 / 503. My theory was that php5-fpm was being killed and re-spawned every second due to messages like this in php5-fpm.log [27-Jan-2015 08:21:34] NOTICE: fpm is running, pid 30045 ...
1
vote
1answer
46 views

Starting lighttpd from nagios renders lighttpd broken

I'm using Debian 7.8 (wheezy), and lighttpd 1.4.31 with nagios 3.4.1. when I start lighttpd normally (as root), everything works as expected: /etc/init.d/lighttpd start However, when nagios starts ...
1
vote
1answer
240 views

Wrong IP with lighttpd reverse proxy

I use a lighttpd reverse proxy to serve django with gunicorn. Now this config worked: proxy.server = ("" => ( "" => ( "host" => "127.0.0.1", "port" => 8000, ))) Now i moved the ...
3
votes
1answer
206 views

Make Lighttpd return 404 for unused subdomains?

I have some domains set up on my Ubuntu server that uses Lighttpd. I have wildcard domains and I want the unused subdomains to return 404 instead of 200 and displaying the regular domain. This problem ...
-1
votes
1answer
169 views

Weird subdomains in access log? [closed]

I have Lighttpd on an Ubuntu server. I just checked the access logs from lighttpd for a particular domain. This domain only has a very simple index.html file that basically says "coming soon". Below ...
1
vote
1answer
39 views

SSL for a single Lighttpd Vhost

I've inherited a lighttpd server that I have really very little knowledge of how to manage. I'm currently trying to install an SSL for one domain on that server. I've been looking at this bit in the ...
2
votes
0answers
41 views

Q: lighttpd uses 2GB ram while idle for private page

I'm running a server with lighttpd installed. It runs php5-fpm and servering an owncloud server. Ubuntu Server 14.04 lighttpd/1.4.33 (ssl) (Jan 28 2014 17:26:04) - a light and fast webserver PHP ...
0
votes
3answers
100 views

lighttpd example.com/support to support.example.com

I googled around and could not find a solution. I am not sure If I am using the correct terminology. I am using lighttpd (1.4.33) and would like to go to the url http://support.example.com and have ...
1
vote
0answers
344 views

Lighttpd and Discourse (Docker): configuring mod_proxy

I have trouble configuring Lighttpd to serve the various services hosted on my server. Lighttpd acts as a front, and I have several DNS records, each for a different subdomain, redirecting to the same ...