Lighty cannot handle includes with absolute path
ASK QUESTIONS IN Forums:
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.
Updated by Anonymous almost 15 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"
Updated by hoffie almost 15 years ago
- Status changed from New to Fixed
- Resolution set to invalid
Closing as INVALID, as per darix comment (and advice on IRC :P).
Updated by stbuehler over 14 years ago
- Status changed from Fixed to Invalid
Also available in: Atom