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

596 questions
0
votes
0 answers

Lighttpd CGI downloads .py instead of running it

I have two CGI test scripts in lighttpd. When I open Bash http://host/cgi-bin/test.sh URL I get a valid response from the script. But when I open Python http://host/cgi-bin/test.py the file is downloaded in browser instead of being run by CGI…
jackhab
  • 771
  • 1
  • 8
  • 21
0
votes
1 answer

lighttpd: ajax request prints the content of cgi script instead of running it

I am using lighttpd version 1.4.55 within an ARM environment. I created an HTML pages in which there is a button used to download some json data. This button trigger a submit form that calls a cgi script. This script has to take the output of the…
marco
  • 1
  • 1
0
votes
0 answers

How to enable PHP caching on lighttpd 1.4 with ubuntu?

I know that in PHP 8.1 I can use php-opcache that will be enabled in php.ini. How to adjust opcache to lighttpd after that?
0
votes
1 answer

How do I get lighttpd access log to stdout?

I am running lighttpd in a docker container on Ubuntu (as a service that must always be up in my traefik setup). My docker-compose.yml contains: lighttpd: image: sebp/lighttpd container_name: lighttpd restart: unless-stopped …
gctwnl
  • 171
  • 11
0
votes
0 answers

404 error with lighttpd and unable to get lighttpd access.log and error.log working under docker compose

I am a beginner with traefik, lighttpd, docker compose, and I am trying to get logging working for lighttpd under docker compose. My lighttpd.conf file contains: server.modules = ( "mod_debug", "mod_accesslog", …
gctwnl
  • 171
  • 11
0
votes
0 answers

"Failed to open stream: Permission denied" Lighttpd on Ubuntu (VM Ware)

The situation is, I have written some code in PHP to write JSON file in the server(Lighttpd) the code is '''
techie
  • 1
  • 1
0
votes
0 answers

Trying to access lighttpd sever in other pc

So, I've this situation: I have recently installed Lighttpd in ubuntu (In VM Ware), I am trying to bind the IP to the Lighttpd server and access that IP address (from a browser) in my other system (within different network), I'm trying this for…
techie
  • 1
  • 1
0
votes
0 answers

Lighttpd WARNING: unknown config-key: proxy.forwarded (ignored)

I encountered an error that proxy.forwarded is an unknown key I already enabled mod_proxy on my configuration. Here is my config server.modules = ( "mod_access", "mod_accesslog", "mod_alias", "mod_compress", "mod_redirect", …
Falcon Ryu
  • 101
  • 1
0
votes
1 answer

opensuse php fpm lighttpd 403 is it a permissions-issue

So far I have configured php-fpm configured and is up and running listening to port 9000 lighttpd is running and serves static files the problem that I have seems to be a permissions issue, so i chmod 777 -R /srv when I try to access index.php…
garsev
  • 1
0
votes
1 answer

Configure Website Names on LLighttpd Alpine Linux

It has been a long time since I have done any hosting on Linux, and it that was on CentOS and Apache. I am working on creating some sites on an Alpine server running Lighttpd. Reviewing the config file for Adminer, I could add my sites as a…
Andrew
  • 209
  • 3
  • 10
0
votes
1 answer

Lighttpd mod_fastcgi respond only if conf file is using root url pattern

I have running lighttpd 1.4.59 on Lubuntu 21.10. My lighttpd.conf contains: fastcgi.server = ( "/" => (( "bin-path" => "/var/www/html/script.fcgi", "socket" => "127.0.0.1:80", "min-procs" => 1, …
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…
Bernd Wechner
  • 161
  • 1
  • 9
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
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
  • 283
  • 5
  • 10
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,179
  • 11
  • 57
  • 79