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
0 answers

lighttpd coredump when it start. Find 6w+ core file in server. It likes closed loop coredump

Coredump info: (gdb) bt #0 0x0000000000004296 in ?? () #1 0x00007fc6d7bb898d in mod_proxy_trigger (srv=0x58a0d0, p_d=Variable "p_d" is not available. ) at mod_proxy_core.c:3140 #2 0x0000000000428a55 in plugins_call_handle_trigger (srv=0x58a0d0)…
0
votes
1 answer

django-gcm under lighttpd/fastcgi?

Has anyone gotten the django-gcm server running under lighttpd using fastcgi? I know how to get a general django application running under lighttpd/fastcgi, but I haven't been able to find instructions specifically for running the django-gcm server…
NYCHippo
  • 377
  • 1
  • 4
  • 14
0
votes
1 answer

mod_rewrite migration from apache to lighttpd

how to describe the same thing with lighttpd? my .htaccess: RewriteEngine On RewriteBase / RewriteCond $1 !^(index\.php|style\.css|image|image-small|robots\.txt|sitemap\.xml|favicon\.ico) RewriteRule ^(.*) index.php [L]
vagiz
  • 313
  • 2
  • 15
0
votes
1 answer

lighttpd mod_rewrite all

i need an regex to do the following: redirect EVERY request to the index.php if there are get parameters in the url i need to access them with $_GET[] (php) My (not complete) solution is: url.rewrite-once = ( ".*\?(.*)$" =>…
Max
  • 249
  • 2
  • 10
0
votes
1 answer

PHP duplicate orders in form submission even with CSRF token

For a 'Confirm Order' page in application written in PHP I need to prevent multiple form submissions so we don't get duplicate orders. I have attempted to handle this in two ways: For users supporting javascript the submit button is disabled…
John Royal
  • 371
  • 4
  • 13
0
votes
1 answer

Upload progress in lighttpd no response

I am trying to get the uploadprogress module for lighttpd 1.5 to work, but i am running into a strange problem: When i start the upload "/response" is getting called every second with the X-Progress-ID header set, but i am not getting any response.…
puelo
  • 5,464
  • 2
  • 34
  • 62
0
votes
1 answer

Django trailing slash append only on home.html

I try to make django not append a trailing slash to my urls I have set APPEND_SLASH = False in my settings.py now there is my urlpatterns : url(r'^foo.html$', 'SensorMonitoring.views.foo'), url(r'^home.html$', 'SensorMonitoring.views.foo'), I'm…
Quentin
  • 1,085
  • 1
  • 11
  • 29
0
votes
1 answer

What is the equals sign followed by tilde in lighttpd config (=~)?

What is the difference between the following? Both work the same way from what I can tell/use it for $HTTP["host"] =~ "a.domain.com" { server.document-root = "/var/www/a/" } $HTTP["host"] == "a.domain.com" { server.document-root =…
cantsay
  • 1,967
  • 3
  • 21
  • 34
0
votes
1 answer

How can I assign a handler to handle ANY URLS?

I am doing a website with a REST architecture and I am finding the latter difficult to do. I want to be able to handle HTTP Requests like these : GET /myapp/5445/ HTTP/1.1 ... In an ideal world, I would code my own server and handle all the HTTP…
toto
  • 880
  • 11
  • 21
0
votes
3 answers

How can I make my script faster. One part takes 3 seconds alone

After checking my code I found why it is taking 7 seconds to load wish is a pain.. $target_path = "uploads/"; exec("./speechdetect.sh uploads/voice.3gp > speech.results"); $myFile = "uploads/voice.3gp"; unlink($myFile); $myFile =…
Jeremy
  • 447
  • 1
  • 4
  • 12
0
votes
1 answer

How to avoid redirecting in css files with lighttpd

I have this rule in my server: url.rewrite-once = ( ".*\.(js|ico|gif|jpg|png|css|)$" => "$0", "^/.*(\?.*)" => "/index.php$1", "" => "/index.php" ) and it works as it should be... except for a little detail. If I add get info to the js…
Cito
  • 1,659
  • 3
  • 22
  • 49
0
votes
1 answer

lighttpd subdomain without "domain"

Referring to this question here: Adding subdomain support into lighttpd I am trying to setup a subdomain on my server. The example provided in the link above works but, the problem is, I still have not bought a domain and, as I am running on a…
john smith
  • 565
  • 1
  • 10
  • 20
0
votes
1 answer

Lighttpd url rewrite removes querystring variables

I am rewriting a URL in Lighttpd using url.rewrite-once = ( "^/(.*)\.(.+)$" => "$0", "^/(.+/?)\??$" => "/index.php?q=$1" ) So that all urls are passed to index.php as variable q. However when I visit http://mydomain.com/account/edit?user=5 my…
James
  • 1,397
  • 3
  • 21
  • 30
0
votes
1 answer

Django dynamic content in VPS environment - when do I need a queue?

I've got some Django content that I plan to host on a vps, web facing. It dynamically generates images that are cached to disk (regeneration is not often needed except (1)user changes content within image or (2) the layout is updated globally so all…
mog
0
votes
1 answer

mod_rewrite problem with lighthttp

I am using mod_rewrite with lighttpd, and I am having an issue... Here is my rule: url.rewrite-once = (".*\.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php") The apache rule works on apache, and looks like this: RewriteEngine on RewriteCond…
Kladskull
  • 10,332
  • 20
  • 69
  • 111