Bug #222
ssi virtual include uses wrong path
| Status: | New | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | jan | % Done: | 0% |
|
| Category: | mod_ssi | |||
| Target version: | 1.4.21 | |||
| Pending: | No |
Resolution: | ||
Description
I'm trying to execute something like <!--#include virtual="cgi/counter.cgi" --> in user home directory and lighttpd instead of referering to user's home directory eg. /home/user/www/cgi/counter.cgi it always refers to server document root (/var/www/html) eg.
2005-08-23 19:12:48: (mod_ssi.c.578) ssi: stating failed /var/www/html/~user/cgi/counter.cgi No such file or directory
-- gringo at slonko d0t net
History
02/10/2006 10:35 AM - conny
"include virtual" works for me, but then instead scripts aren't executed!?
02/26/2006 05:35 PM - Anonymous
In general virtual works, but not in combination with mod_userdir (that was my problem). I cannot make lighttpd to execute certain executable from user's home directory. I haven't tried the latest lighttpd from svn repository, but I believe it still does not work..
Some explanation to initial bug report:
/var/www/html - server document root
/home/user/www - user's homepage root
/home/user/www/cgi/counter.cgi - CGI I want to execute
/home/user/www/index.html - SHTML file containing '<!--#include virtual="cgi/counter.cgi" -->'
Normally I would expect that /home/user/www/cgi/counter.cgi would be executed by instead lighttpd looks for '/var/www/html/~user/cgi/counter.cgi' which isn't what I was looking for..
-- gringo