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

What is the % in this RegEx within this Lighthttpd configuration?

$HTTP["scheme"] == "http" { $HTTP["host"] =~ "^(.*)$" { url.redirect = ("^/folder/(.*)$" => "https://%1/$1") } } Obviously, the %1 is inserting the host - but where is getting it from? My first thought is in from the line above it…
doremi
  • 14,921
  • 30
  • 93
  • 148
0
votes
2 answers

lighttpd authentication and rewrite on same url not working

I can't seem to get both authentication and rewriting on the same url. If I disable one, the other works. Is this possible in lighttpd? $HTTP["host"] =~ "www\.example\.com$" { auth.require = ( "/prettyurl" => ( "method" =>…
0
votes
1 answer

Running lighttpd on ARM Platform

I am trying to host a web server on my ARM platform. The condition was that the web server should be light and fast. So I zeroed in on lighttpd. I was able to cross compile the lighttpd successfully for the ARM target. But when I am trying to run it…
spanky
  • 133
  • 1
  • 3
  • 11
0
votes
1 answer

In bash, what is the simplest way to configure lighttpd to call a local python script based on a particular URL?

In bash, what is the simplest way to configure lighttpd to call a local python script while passing any query string or name-value pairs included with the URL as a command line option for the local python app to parse?…
Chris
  • 4,237
  • 6
  • 30
  • 42
0
votes
1 answer

Fast CGI, Lighttpd, Ubuntu

Is this log file familiar to someone of UBUNTU users? Lighttpd log file: > 2009-08-30 21:37:45: (log.c.75) server started > 2009-08-30 21:37:45: (mod_fastcgi.c.1029) the fastcgi-backend php5-cgi *failed* to start: > 2009-08-30 21:37:45:…
Gosh
  • 61
  • 1
  • 6
0
votes
1 answer

lighttpd domain redirection

I'm having trouble redirecting several domains & associated sub-domains to one other domain. Keep falling into a 301 infinite loop. I have 3 domains, proxied to the same lighttpd process, say : dom.co dom.info dom.net dom.net is my domain of…
r---------k
  • 947
  • 9
  • 18
0
votes
1 answer

lighttpd access.log appeng with prefix hostname like hostname-access.log

We have multiple severs behind loadbalncer and we want access log of each machines in way that it access prefix as hosname with accesslog in lighttpd. For example : 192.168.1.1-access.log 192.168.1.2-access.log I tried to use include_shell…
Jyotir Bhandari
  • 109
  • 1
  • 10
0
votes
0 answers

lighttpd, absolute default index and broken getenv("SCRIPT_NAME")

For a directory index I set the default index file name to an absolute path in the lighttpd conf file: index-file.names += ( "index.html", "index.php", "/_h5ai/server/php/index.php" ) Inside this /_h5ai/server/php/index.php script I try to find the…
lrsjng
  • 2,615
  • 1
  • 19
  • 23
0
votes
1 answer

Different php ini files by directory or alias in lighttpd

Take 2 domains: www.domain.com and sub.domain.com. Each hosted on the same server at /home/www and /home/sub respectively and using a different php.ini file through vhost configuration within lighttpd. fastcgi.server = ( ".php" => (( …
0
votes
1 answer

plus character missing in lighttpd php

I create a php file containing the following codes: And I make a request from browser: http://localhost/Study/php/get.php?test=1,+ I got the following message: Array ( [test] => 1, ) the plus "+" is missing, but when i…
jz1108
  • 1,300
  • 1
  • 11
  • 14
0
votes
1 answer

Lighttpd's redirect only works with parentheses around the whole regex

I'm using lighttpd 1.4.28 Here is my redirect rule : $HTTP["host"] =~ "^([^.]+\.[^.]+)$" { url.redirect = ( "^/(.*)" => "http://www.%0/$1" ) } It's supposed to redirect anydomain.anytld to www.anydomain.anytld and it works like a charm like…
Biganon
  • 189
  • 1
  • 7
0
votes
1 answer

rewrite lighthttpd QSA

Help rewrite flag apache - QSA for lighttpd. Now available: RewriteRule ^([^?]*) index.php?_route_=$1 [L, QSA] Try the case, but is not functioning properly: url.rewrite-if-not-file = ("^/(?:\?(.*))?" => "/index.php?_route_=$1")
jeka5555
  • 189
  • 1
  • 15
0
votes
1 answer

How do I use rewrite on Lighttpd?

I'm trying to use rewrite on Lighttpd but I cannot get it to work. I try the following: $HTTP["host"] =~ "asdf.com" { server.document-root = "/home/www/asdf.com" url.rewrite = ( "/^test/$" => "/test.html", ) } but I just…
Markus Helin
  • 53
  • 1
  • 7
0
votes
1 answer

Block invalid referer

Lately my site has been getting hit by some people who have bots which spam HTTP requests, everything is basically random gibberish which can't really be filtered in any meaningful way (without some very serious work), but one inconsistency I found…
puromonogatari
  • 378
  • 3
  • 10
0
votes
1 answer

Add the IP address to the "GET" request with Lighttpd

With the mod_rewite I want to send to my destination the IP address that made the request as a "GET" parameter, like rewrite-once = (".*" => ".*?ip=$HTTP[remoteip]") I tried with %a, %h, ".*?ip=" + $HTTP[remoteip]. Does anyone know that?