Project

General

Profile

Bug #1698

Lighty cannot handle includes with absolute path

Added by Anonymous over 11 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
High
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

I have a Lighty configuration file, which, if checked from the directory where it is passes the syntax check,


~/public_html/poliglota: lighttpd -tf lighty-config.tmp
Syntax OK

But if checked by passing an absolute path, it fails:


~/public_html/poliglota: lighttpd -tf /home/gustavo/public_html/poliglota/lighty-config.tmp
2008-06-21 21:00:12: (configfile.c.901) opening configfile  /home/gustavo/public_html/poliglota//home/gustavo/Tmp/poliglota/builds/releases/6/.htaccess failed: No such file or directory
2008-06-21 21:00:12: (configfile.c.855) source: /home/gustavo/public_html/poliglota/lighty-config.tmp line: 10 pos: 25 parser failed somehow near here: (EOL)

The bug is that Lighty converts the absolute path into a relative one.

-- gustavo

lighty-config.tmp (555 Bytes) lighty-config.tmp My configuration file. -- gustavo Anonymous, 2008-06-21 19:03

History

#1

Updated by Anonymous over 11 years ago

that is how it is documented all paths are relative to the directory with the main lighttpd config file.

your 2 options now are:

1. include="../../../../full/path" (number of ../ depends on the depth of your config dir)

2. include_shell="cat /path/to/file"

#2

Updated by hoffie over 11 years ago

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

Closing as INVALID, as per darix comment (and advice on IRC :P).

#3

Updated by stbuehler almost 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom