Bug #222

ssi virtual include uses wrong path

Added by Anonymous 1233 days ago. Updated 91 days ago.

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

lighttpd-mod-ssi-basic-tests.patch - Testcases for common include statements (2.5 KB) conny, 02/10/2006 02:07 PM

History

02/10/2006 10:35 AM - conny

"include virtual" works for me, but then instead scripts aren't executed!?

02/10/2006 02:50 PM - conny

So the

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

10/20/2006 04:16 AM - Anonymous

=)

-- Hillary

10/08/2008 07:02 PM - stbuehler

  • Target version changed from 1.4.20 to 1.4.21

Also available in: Atom PDF