Questions tagged [lighttpd]

An extremely light-weight HTTP server

lighttpd is a small webserver and fast webserver developed with security in mind and a lot of features.

It currently supports most common features and is somewhat less complex to configure than the more mainstream ones.

15 questions
7
votes
2 answers

Separating static/uploaded content from the site

I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd would serve the content. This is supposed to…
user7562
  • 235
  • 1
  • 3
  • 5
2
votes
2 answers

How can I display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard file size, date) with no (or minimal) other…
plonk420
  • 23
  • 5
2
votes
1 answer

Curl not working with PHP 5.4.6

I'm trying to use Curl to send and receive XML information from my credit card company and it works great in a shared server (sandbox). However, now that I uploaded it to my dedicated server it does not work. Below is the Curl information from my…
2
votes
1 answer

Best practice for suEXEC on complex sites?

What is best practice for using suEXEC on complex sites? We've got a site running under a single vhost, and we want to be able to run different PHP web apps eg /forum /wiki /crm as their own UIDs, to help isolate any potential security threats. I've…
stefan
  • 106
  • 5
2
votes
0 answers

Apache, Lighttpd, which one should I use?

Apache has always been described to me as the solution for hosting websites, but I have been using Lighttpd for many years now and seems pretty stable. What are the advantages of Apache towards Lighttpd ? Does it scale well for heavy-usage…
Tom
  • 121
  • 2
1
vote
2 answers

HTTP Header broken? Browsers don't open our pdf, but open all other pdfs

My Firefox and Chrome usually open PDF files very nicely, without asking and within the browser window. When clicking on a link to a PDF on our own website: Firefox asks if it should download them, to see it I need to open the download…
Philipp Zedler
  • 119
  • 1
  • 4
1
vote
1 answer

Re-writing URL's with lighttpd

I'm using Lighttpd to serve a GET based API that I'm working on, and I'm having some difficulty with re-writing requests. My API calls are very simple. An example would be : url:/method/submethod?var1=something&var2=something&key=something This is…
Tim Post
  • 6,586
  • 39
  • 46
1
vote
2 answers

Should I use a video sitemap when my video URLs change every two hours to prevent hotlinking?

I have over 10k videos hosted on my server, and I'm using lighttpd to switch the video URLs every 2 hours because of hotlinking protection. This means that all video URLs in video sitemap is only valid for 2 hours. I have not much experiences of…
Love
  • 11
  • 2
1
vote
1 answer

Reasons for putting an application platform behind a web server

Application platforms like Node.js and Tomcat can bind to port 80 and serve external requests directly. Alternatively, these application platforms bind to a local port (like Tomcat's 8080) that is not exposed to external calls. A web server - like…
Adam Matan
  • 263
  • 3
  • 13
1
vote
2 answers

Serve most of a domain with Apache, but use mod_proxy to serve some URLs from Lighttpd

So we wish to host some pages on a new server with apache2, and embed some of our old content & functionality from another server with lighttpd in an iframe. I'm looking at this configuration from the apache docs…
Alex Pineda
  • 111
  • 4
1
vote
1 answer

How to obtain a list of all lighttpd servers running and which port each one is listening to?

I have several lighttpd servers running on an Arch Linux machine, all for local network use only. I want to know which lighttpd server is watching which port. 'ps aux | grep light' lists them all by process id, but provides no clues about port…
DarenW
  • 219
  • 2
  • 9
1
vote
1 answer

How to create socket dynamically on lighttpd server?

We are hosting more than 200 websites/users on the lighttpd web server. When we keep all the socket connection open/active, the memory consumption is very high. We want to create the socket, on demand when there is a request. How can we do it ? I am…
Mani
  • 1,327
  • 9
  • 19
1
vote
1 answer

Lighttpd - configure multiple PHP versions

I have 2 php fpm services in my server, one is php 5.6 in port 9001, and the other is php 7.2 in port 9072. I have a website that is running on PHP 5.6, working using the following config: fastcgi.server += ( ".php" => (( …
TheUnreal
  • 111
  • 2
1
vote
0 answers

Is it safe to give write permission to index.php file?

Today I accidentally gave write permission to my index.php file to using sudo chmod +x index.php. I don't know what permission it had before. My index.php contains a php script for collecting number of visitors and an another script for collecting…
Sadie
  • 19
  • 1
0
votes
2 answers

Apache Vs. lighthttpd?

I've recently bought a VDS server with 768MB RAM. All of my RAM is being eaten by Apache(286MB). As lighthttpd is lighter and needs less memory I want to switch to that. I just want to make sure I miss nothing in between. Is there any major…
Alireza
  • 380
  • 2
  • 11