Project

General

Profile

Actions

Bug #1698

closed

Lighty cannot handle includes with absolute path

Added by Anonymous almost 16 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
High
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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


Files

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

Updated by Anonymous almost 16 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"

Actions #2

Updated by hoffie almost 16 years ago

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

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

Actions #3

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom