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

587 questions
0
votes
1 answer

Lighttpd URL and host matching and include-file spanning (is it possible?)

I have an interesting condition resolution problem to resolve and have not had luck with on-line searching and looking through documentation for lighttpd yet. Many of those searches led to similar questions asked here and useful answers (for those…
0
votes
1 answer

Lighttpd Execute ./cgi-bin/index.cgi if exists in the folder

BusyBox httpd executes the ./cgi-bin/index.cgi if it exists. This is similar to index.php but with the /cgi-bin/ folder. So for example I have the structure: /api/ cgi-bin/index.cgi /blog/ cgi-bin/index.cgi /rss/ cgi-bin/index.cgi So when…
0
votes
2 answers

Lighttpd reverse proxy to another server faild

I am trying lighttpd as a reverse proxy (v1.4.53) lighttpd.conf: $HTTP["url"] =~ "(^/example/)" { proxy.header = ("map-urlpath" => ( "/example/" => "/" )) proxy.server = ("" => (( "host" => "redmine.lighttpd.net" ))) } However, this request…
0
votes
1 answer

Nextcloud: Failed to open stream: Permission denied

I'm installing Nextcloud on a FreeBSD system and I'm using lighttpd behind a nginx reverse proxy with terminal SSL. lighttpd is able to serve static html files and can serve index.php, but without any styles, just the text. When running lighttpd -D…
Luis
  • 273
  • 5
  • 9
0
votes
2 answers

Lighttpd mod_rewrite and SSL

I'm trying to prevent the search engines from crawling through SSL version of the site, to prevent content duplication and canonization issues. I found the following great…
SyRenity
  • 3,159
  • 11
  • 55
  • 79
0
votes
2 answers

lighttpd security without htaccess

I have a webserver with limited resources and therefore I decided to use lighttpd as my webserver software. However, I notice now that it does not recognizes apache .htaccess files. Most of the software I use and opensource scrips have plenty of…
Thom
  • 31
  • 1
  • 3
0
votes
1 answer

Lighthttp FastCGI unable to start due to permission denied on Linux Mint 20

I get that in /var/log/lighttpd/error.log after start attempt: 2021-04-04 14:47:21: (server.c.1488) server started (lighttpd/1.4.55) 2021-04-04 14:47:21: (gw_backend.c.1404) invalid "bin-path" => "/usr/bin/cgi-bin" (check that file exists, is…
0
votes
1 answer

Auto start lighttpd when it dies

Other than Monit, do you know how can auto start the lighttpd? maybe some built-in function which I dont know... (I use Lighttpd 1.4.22) Thanks in advance.
Kuku
0
votes
1 answer

Lighttpd Port/Proxy Alias Redirect

I am trying to redirect an alias to an internal port. [https]://www.site.com/place ---> [http]://localhost:10000 The configuration entry I currently have just changes the URL to [https]://www.site.com:10000 instead of preserving the…
Will Roberts
  • 43
  • 1
  • 6
0
votes
1 answer

Why won't lighttpd restart despite having correct permissions?

systemctl status lighttpd ● lighttpd.service - Lightning Fast Webserver With Light System Requirements Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu…
Jason
  • 3,821
  • 17
  • 65
  • 106
0
votes
1 answer

Lighttpd 1.4.45 - HTTP to HTTPS redirects not replacing ${url.authority}${url.path}${qsa}

I tried to reconfigured my lighttpd to automatically relocate any HTTP requests to HTTPS requests. To do this, I found the following config snipped in the Lighttpd Redmine Wiki: $HTTP["scheme"] == "http" { url.redirect = ("" =>…
SDwarfs
  • 385
  • 4
  • 15
0
votes
1 answer

Lighttpd proxy, and letsencrypt renewal

I need some help on this subject. I have many domains in the same lighttpd config, and I will move to letsencrypt cert, so I'm simulating on a dummy server. I have the following: $HTTP["url"] !~ "^/.well-known/acme-challenge/.*$" { …
0
votes
1 answer

lighttp seems to be caching license file but don't know why

I'm using certbot to generate SSL certs for my website. I had an issue (because of cron script error and out of date python2, now resolved) where auto-update didn't work. I now have up to date license files on my server. The license files are in an…
danmcb
  • 103
  • 5
0
votes
1 answer

Lighttpd alpine container logging

The context is that I want to serve a static website inside a docker container so I can have some dedicated metrics, and I want the logs to use stdout/stderr. To do that I thought of using Lighttpd with an Alpine image. I found a tip here where we…
VascoCC
  • 101
  • 3
0
votes
0 answers

Problems with WEBDAV on lighttpd

I've setup webdav on lighttpd but I'm getting a Cannot open collection - 404 not found when I try to access the share through cadaver. My lines for the vhost and share are as follows: $HTTP["host"] == "www.markmhart.com" { server.document-root =…