Questions tagged [lighttpd]

Lighttpd is a lightweight and high-performance event-driven web server.

Lighttpd is a lightweight and high-performance event-driven web server.

1125 questions
6
votes
3 answers

Why would Django fcgi just die? How can I find out?

I'm running Django on Linux using fcgi and Lighttpd. Every now and again (about once a day) the server just dies. I'm using the latest stable release of Django, Python and Lighttpd. The only thing I can think of is that my program is opening a lot…
Joe
  • 46,419
  • 33
  • 155
  • 245
6
votes
2 answers

Executing Python Scripts with Lighttpd and CGI

I am having a problem getting python scripts to execute within Lighttpd and cgi-bin. I have found similar issues within stackoverflow (i.e. Lighttpd and cgi python) and other websites, but none fully pertain to my configuration. I can execute the…
user2909404
  • 61
  • 1
  • 1
  • 2
6
votes
3 answers

Questions regarding Lighttpd for Windows

I am using lighty for windows, yes i know it's not linux, but atm can only afford local hosting, which then allows me to do a lot of learning and practicing my web skills. I am aware that fast-cgi, does not work on windows, but I am wondering what…
crosenblum
  • 1,869
  • 5
  • 34
  • 57
6
votes
1 answer

lighttpd: disable CGI buffering

Is there a way to stop lighttpd from buffering POSTs to a CGI executable? It seems to me that all requests are fully buffered on disk before they are forwarded to the CGI executable, which makes it impossible for me to process the input in a…
lxgr
  • 3,719
  • 7
  • 31
  • 46
6
votes
2 answers

How does PHP interact with HTTP servers? (like lighttpd)

Possible Duplicate: I never really understood: what is CGI? In the lighttpd config, we define two paths (as shown below), one of them is the binary of PHP, the other is the socket path. My question is, in which point does the lighttpd fetches the…
tolga
  • 2,462
  • 4
  • 31
  • 57
6
votes
1 answer

How to handle relative paths in node.js / express?

I've written a website in node.js and express. Now I configured lighttpd to use the node.js server with an subdirectory: $HTTP["url"] =~ "^/app/" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", …
ChristophLSA
  • 175
  • 3
  • 19
5
votes
1 answer

Lighttpd Reverse Proxy Settings

I am trying to configure Lighttpd to act as a reverse proxy. I want to have several URLs that are proxied to different servers on different ports, either on the same machine or within the local network. For example: / /static /socket /ajax Lighttpd…
Jonathan
  • 5,495
  • 4
  • 38
  • 53
5
votes
1 answer

Configuring lighttpd to handle CGI C executables

Does anyone know how to configure lighttpd to handle plain CGI executables, in this case written in C? I have compiled a test program (test.cgi) and put it in $HOME/public_html/cgi-bin. I have also enabled the CGI module with lighty-enable-mod cgi…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
5
votes
2 answers

How to convert Apache .htaccess files into Lighttpd rules?

It's big problem to convert mod_rewrite rules to lighttpd format
Shtirlic
  • 692
  • 1
  • 6
  • 14
5
votes
1 answer

Reverse Proxy lighttpd https not working

I have multiple Tomcats running on my Server. I use lighttpd to reverse proxy the incoming requests for different domains. So far I only used http without https and this config worked for me: $HTTP["host"] == "my.domain.com" { proxy.server = (…
Lars
  • 1,750
  • 2
  • 17
  • 26
5
votes
3 answers

Access-Control-Allow-Origin angularjs to php

my scenario is composed by two webserver one local and one remote. Local webserver (Apache) process a web app in which I want make an ajax request to remote webserver (Lighttpd). Ajax request use angularjs $http. var req = { method: 'POST', …
pepperav
  • 527
  • 6
  • 16
5
votes
4 answers

Why are event-based network applications inherently faster than threaded ones?

We've all read the benchmarks and know the facts - event-based asynchronous network servers are faster than their threaded counterparts. Think lighttpd or Zeus vs. Apache or IIS. Why is that?
dowski
  • 3,188
  • 2
  • 20
  • 16
5
votes
2 answers

how to enable mod rewrite in lighttpd

i need to enable mode rewrite in lighttpd it should no display the index.php extension ....
Ramesh
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

List server directory using JavaScript XHR

When I asked the question can javascript list files on the server, everyone answered with "javascript cannot access server filesystem because it is a client-side scripting language". But I thought that answer is only partially true, because browser…
Ulrik
  • 1,131
  • 4
  • 19
  • 37
5
votes
1 answer

How to secure MQTT over websockets

I'd like to understand the best way to secure Mosquitto when surfacing an MQTT broker over websockets to a browser. I'm currently using Lighttpd for the websocket layer, as per this blog post. My use case is uni-directional. I only need send…
Jeremy Gooch
  • 939
  • 4
  • 16
  • 28