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

learn more… | top users | synonyms

3
votes
1answer
1k 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"] =~ ...
1
vote
1answer
686 views

PHP-FPM doesn't process php request

I have a strange situation, I have installed lighttpd and php5-fpm through aptitude I've created one vhost and the and the fpm pool. This is the main.conf (global FPM) [global] pid = ...
0
votes
2answers
399 views

lighttpd fastcgi unix bind error

I am trying to configure Lighttpd to run Redmine using FastCGI. I have added the following code to my standard lighttpd.conf: $HTTP["host"] =~ "^foo.bar.com$" { server.document-root = ...
0
votes
1answer
23 views

Using an EV SSL certificate for your site with non-EV SSL content

If I purchase an EV SSL certificate for a site that is using static content from a non-EV SSL site does that effect the EV SSL certificate presentation on the main www site? For example: ...
2
votes
3answers
2k views

lighttpd config and rewriting/disabling attempts to access favicon.ico

I've got lighttpd and apache working together on an app I'm building. lighty is serving out static content. However, each time a static asset is requested, I see a not found: favicon.ico message in ...
0
votes
1answer
682 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: ...
5
votes
2answers
2k views

Running multiple services on Port 443, Tunnel SSH over HTTPS

Situation: I want to tunnel SSH sessions through HTTPS. I have a very restrictive firewall/proxy which only allows HTTP, FTP and HTTPS traffic. What works: Setting up a tunnel through the proxy to a ...
0
votes
1answer
24 views

Configure sub-domains at different ports with lighttpd

I've one domain example.com and two sub domains of it docs.example.com & bugs.example.com. And I've two applications running at ports 8080 & 8090. How to configure Lighttpd so that, it can ...
0
votes
1answer
1k views

Lighttpd proxy module - use with hostname

I have to proxy a site which is hosted on an external webspace through my lighty on example.org. My config so far: $HTTP["url"] =~ "^/webmail" { proxy.server = ("/webmail/" => ( # ...
0
votes
2answers
6k views

How to configure fastcgi to work with ligttpd in ubuntu

I am able to run lighttpd on ubuntu 9.10. But when i tried to setup fastcgi with lighttpd by putting this in the ligttpd.conf file: #### fastcgi module fastcgi.server = ( "/fastcgi_scripts/" => ...
0
votes
1answer
32 views

Lighttpd splitting request URI and dropping query parameter

I'm running lighttpd 1.4.33, which is reverse proxied to from an Apache server that is open to the Internet. When accessing a script from the local address of the lighttpd server, GET parameters are ...
1
vote
1answer
821 views

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 ...
1
vote
2answers
876 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
0answers
27 views

Configure lighttpd/php-cgi to load different shared libraries

For some reason I messed up my webserver after a distro update to Debian GNU/Linux 7 (wheezy). When I try to start lighttpd with /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D I receive the ...
-1
votes
1answer
24 views

apache + lighttpd on debian, the both should use ssl, port 443 already used

I installed apache and lighttpd in debian 7, apache used port 80 and lighttpd 88, now I install ssl for apache (443) and when i tried to do the same for lighttpd, I got error because 443 is already ...
1
vote
3answers
444 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
1answer
70 views

Rewrite Location response header in lighttpd

I have an instance of lighttpd 1.4.35 listening for https traffic and reverse-proxying it to a back-end server. I.e., .----------. .----------. client ---https--> | ...
0
votes
2answers
26 views

How can I use Lighttpd's $HTTP[“remoteip”] together with Cloudflare?

I am using Clodflare DNS. I only want to allow certain IPs to access certain files. How can I set up my lighttpd.conf to properly detect the correct IP? I know how to do it for the access.log. Is it ...
3
votes
1answer
2k views

How to setup Python with Lighttpd and FastCGI (like PHP)

Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts. The goal is to be able to execute arbitrary script files stored in the WWW directory, ...
0
votes
3answers
62 views

Architecting a web server hosting mixed small and large (100MB+) static content [closed]

I have the challenge of hosting about 200-1000 mp3 files, all in the 100MB+ size range. Furthermore, there are some smaller RSS files, and some smaller JPG files. All this is static content, no PHP, ...
1
vote
2answers
60 views

Lighttpd rewrite subdomains to subfolders

I have a server (itself on a subdomain) with wildcard DNS pointing to it. The server is running Lighttpd and PHP. I need requests to http://any-subdomain.server.example.com to rewrite to ...
0
votes
0answers
53 views

How to make lighttpd respect X-Forwarded-Proto when constructing redirects for directories?

We have an nginx proxy at tools.wmflabs.org that receives requests by http and https and passes them by http on to lighttpds on a grid (one lighttpd per top-level path). Requests that reach the proxy ...
5
votes
4answers
3k views

Firefox does not load certificate chain

I'm running lighttpd/1.4.28 (ssl) on Debian Squeeze. I just created a http://startssl.com certificate, I runs fine at all of my Browsers (Firefox, Chrome, Opera), but my users are reporting ...
0
votes
2answers
652 views

Can not run ifconfig like commands via browser

Problem is I cannot run "ifconfig" or similar commands via browser. Environment: Programming language : python Server : lighttpd(CGI) , running on busybox. Well machine is really small and so I ...
0
votes
0answers
36 views

Can't run django with lighttpd and FCGI

I'm trying to run django on lighttpd but I'm not able to do it. In logs I see this: 2014-05-30 13:45:32: (log.c.166) server started 2014-05-30 13:45:32: (mod_fastcgi.c.1103) the fastcgi-backend ...
0
votes
1answer
77 views

What are the advantages of using dedicated server software over framework built-in servers?

Being a beginner in the web world, I've always used Apache to develop applications in PHP. Getting tired of it, I learned Node.js, Rails and Django -- just to get a taste of each of the most used web ...
1
vote
4answers
141 views

Retrieve external IP in PHP behind Haproxy

I am using Haproxy to enable running a websocket server and Lighttpd web server on the same machine. I want to retrieve the machines external IP address from the web application running on the ...
0
votes
1answer
30 views

CGI scripts are not working on lighttpd with SSL

CGI scripts worked perfectly, while I was using HTTP. Then I set redirecting for all traffic through https and now CGI doesn't work at all (404 - not found). I use lighttpd server. Here is the part ...
0
votes
1answer
112 views

Upgrade Lighttpd 1.4.28 to 1.4.35 on Ubuntu 12.04

I am using Ubuntu 12.04 and installed Lighttpd using: sudo apt-get install lighttpd this installed version 1.4.28. I downloaded the source files for 1.4.35 (latest) from the Lighttpd site and ...
0
votes
1answer
107 views

Lighttpd rewrite rule for Flight PHP microframework

I'm using the Flight PHP microframework, and it includes its' own router, and needs the server to rewrite requests to the index.php file. It features rewrite-rules for both Apache and Nginx but ...
0
votes
0answers
81 views

How can I set up a web server for reverse proxy having websockets and socket.io working normally?

I have a VPS currently hosting node.js web apps and one site. However I'm currently using custom ports for the apps. I'd like to simply give each its custom domain and so for more sites, that would ...
1
vote
0answers
19 views

Lighttpd fastcgi remote instance operation

This article suggests that it is relatively easy to scale an application by getting lighttpd to spawn php-fastcgi instances on multiple machines. What I do not understand is this - how does a PHP ...
0
votes
1answer
105 views

HAProxy: ACL to forward to different webservers based on directory

basically I have a raspberry pi with multiple webserver daemons on different ports, to be specific lighttpd, apache, and the ADAFruit WebIDE. Basically here are the ways i need it to work[how would ...
0
votes
3answers
83 views

Can Apache, nginx and lighttpd coexist in a Ubuntu system?

Just for learning and testing, I've installed these three different web servers, I've also installed mysql and php5. I changed the DocumentRoot for each to /var/www/apache, /var/www/nginx and ...
1
vote
2answers
2k views

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 ?
0
votes
1answer
85 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as ...
1
vote
1answer
257 views

Redirect all subdomains to main domain with lighttpd and regex

Is it possible to redirect all *.domain.com to my domain.com? I have been messing around with the Regex but without any luck: $HTTP["host"] =~ ".*\.domain\.com" { url.redirect = ...
0
votes
0answers
90 views

Using FastCGI can bypass the Lighttp POST cache?

I'm building a web service to configure an embedded device, and it should support firmware upload. That said, I have very limited RAM and storage to upload a file that's nearly 30% of the whole flash. ...
0
votes
1answer
58 views

Lighttpd wrong config file syntax

Been trying for hours but just can't seem to get the correct syntax in my lighttpd configuration. As a last resort I am now asking the hive mind of server fault :P I am trying to get trac hosted on ...
0
votes
1answer
224 views

lighttpd server not serving images, js or css files

I am given a try to lighttpd. I configured a server with the instructions I found here. Below my configuration file: server.document-root = "<my_site_directory>" server.port = 4000 ...
6
votes
2answers
2k views

Why are NginX and Lighttpd not affected by Slowloris?

I am investigating the vulnerability to Slowloris and I think I understand how and why this sort of attack works. What I don't understand is why Lighttpd and NginX are not affected (according to the ...
1
vote
1answer
84 views

SELinux policy issue

As qemu & KVM are working fine with SELinux out of the box I'd like to enable SELinux to improve guest isolation on my CentOS 6 server. The problem is that I'm using a 3rd parity virtualization ...
1
vote
1answer
57 views

lighttpd behind pound gets “connection timed out” error when using browser other than Chrome

Please help me diagnose a problem. I had a working website (WordPress) for the last 6 months working just fine. No updates or new installations have been made in the server. Today users complain ...
0
votes
1answer
98 views

convert lighttpd to nginx rewrite rules

I'm trying hard to make my code work on nginx. This configuration works with lighttpd but I want migrate it to nginx. Rewrite rules on lighttd : url.rewrite-once = ( "^/(ui)/(.*)$" => ...
0
votes
1answer
62 views

lighttpd How to allow executing fcgi programs on www folder?

This is the first time I install lighttpd and I'm having a hard time configuring fcgi to work on /var/www/site/ I keep getting 403 Forbidden and so far have only found guides specific to php or that ...
1
vote
1answer
138 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 ...
0
votes
1answer
184 views

Rewrite rules for Anchor CMS on Lighttpd

I installed Anchor CMS on my server running Lighttpd, and I am trying to setup pretty url's. I have anchor installed in a sub-directory "/blog". The htaccess file that works with anchor cms in ...
0
votes
1answer
83 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. ...
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% ...
0
votes
2answers
70 views

Use fasterize.com : redirect to “http://www” except for one page in https (with lighttp)

I use the awesome front end optimizer fasterize.com , which requires www subdomain. Also I have a payment page that I would https without using fasterize, so on another subdomain. I use lighttpd, I ...