Bug #1771

mod_magnet setting of physical.path is ignored, server hangs up.

Added by olegnitz over 11 years ago. Updated over 11 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Missing in 1.5.x:


The changeset makes impossible to use mod_magnet is a way like
lighty.envphysical.path = ...
return lighty.RESTART_REQUEST
which is desribed in documentation, now physical.path is just reset.
Thus scripts that worked before this change now make lighttpd to go into infinite loop, server hangs up.


Updated by stbuehler over 11 years ago

- i couldn't find the mentioned example
- i have no problem with changing the behaviour in 1.5.x

A special return-code is lighty.RESTART_REQUEST (currently equal to 99) which is usually used in combination with changing the request.uri in a rewrite. It restarts the splitting of the request-uri again.

The request-uri is only handled if we reset physical-path, so i think r2234 was the right thing to do.


Updated by olegnitz over 11 years ago

"As a start, you might want to use those variables for writing:

-- 2. changing the physical-path"

Why would one change physical-path if (s)he is not going to return lighty.RESTART_REQUEST?


Updated by stbuehler over 11 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

read the docs and understand them. you don't want to restart the splitting of the request-uri, so you don't return restart_request, and there is no example doing this - you just tried combining 2 examples.


Updated by stbuehler over 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom