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

600 questions
10
votes
5 answers

How do I prevent lighttpd from caching static files, even when modified on disk?

I am using lighttpd to serve static files. I have a bunch of images in a dir that I regularly update. This will change the file content (and filesize) as well as the modification date, but not their filename. When I access the files through http,…
6
votes
3 answers

How to comment multiple lines in Lighttpd config file?

In lighttpd.conf usually comment 1 line with # How was wondering how to comment multiple lines without adding # in front of each line. thanks
aneuryzm
  • 1,754
5
votes
1 answer

lighttpd - use different document-root for diff url

To me this seem logical, but it doesn't seem to work. $HTTP["host"] =~ "(^|\.)hd.domain\.com$" { server.document-root = "/domain_site/" $HTTP["url"] =~ "^/aa/" { server.document-root = "/domain_aa_site/" } } When I go to…
Syntax
  • 225
4
votes
2 answers

Unable To Activate User Directories In Lighttpd

I am using Debian 7 based host and configure PHP-FPM and lighttpd along with rutorrent on this host. I wants to use user directories instead of default /var/www path. I already run following command to activate user directories.But unable to use…
4
votes
2 answers

Lighttpd restart and force-reload commands

What is the difference between the following sudo /etc/init.d/lighttpd restart and /etc/init.d/lighttpd force-reload ?
aneuryzm
  • 1,754
4
votes
3 answers

How to use 2 webservers on 2 server at once without repercusions

I got big phpbb forum and 2 servers. Want to distribute http load from 1 webserver to 2 webservers. Did it already in the past but there was problem. On both servers (1 and 2) was lighttpd. I used various load ballancers when user connect to server…
sg1
3
votes
1 answer

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 follows: $SERVER["socket"] == ":443" { ssl.engine…
chochim
  • 145
3
votes
2 answers

Is lighttpd recommended for a production webserver?

I've been using lighttpd as a development webserver for an scgi based webapp I'm building. I was very impressed with its ease of configuration and automatic load balancing between scgi processes. Getting mod_scgi to work in Apache was a nightmare. I…
David
  • 588
  • 2
  • 6
  • 15
3
votes
3 answers

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"] =~ "sub2\.example\.com$" { server.document-root =…
Adam Matan
  • 13,574
2
votes
1 answer

How Can I Do This In Lighttpd?

This is for Apache: Header set Cache-Control "max-age=290304000, public" How do I do it for lighttpd?
Steven
  • 617
2
votes
2 answers

Lighttpd proxy tomcat path

My tomcat serves 2 sites ROOT -> Main-site /mobile -> dedicated mobile website I've configured lighttpd to serve as a proxy $HTTP["host"] =~ "www.my-site.at" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", …
Beig
  • 121
2
votes
2 answers

Redirect to https on lighttpd

Trying to understand how to make the redirect to redirect all http traffic to https on lighttpd webserver using 301. For instance http://www.example.com should redirect to https://www.example.com and it should work for all sub pages as it's…
Andreas
  • 161
2
votes
1 answer

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 sure where I have to place these…
HTF
  • 3,198
2
votes
1 answer

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 specific domain to be redirected to an application running on another port like this: $HTTP["host"]…
lassejl
  • 121
2
votes
2 answers

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 777 permissions. The folder stays empty after I…
gX01
  • 141
1
2 3 4