I think it has to do with the way it's handling the relative links.

you might want to try it as cgi="../calendar/homepage.cgi"

or cgi="/~clienttest1/calendar/homepage.cgi"

from apache docs for Module mod_include
http://www.apache.org/docs/mod/mod_include.html

exec 
The exec command executes a given shell command or CGI script. The
IncludesNOEXEC Option disables this command completely. The valid attributes
are: 

cgi 
The value specifies a (%-encoded) URL relative path to the CGI script. If
the path does not begin with a (/), then it is taken to be relative to the
current document. The document referenced by this path is invoked as a CGI
script, even if the server would not normally recognize it as such. However,
the directory containing the script must be enabled for CGI scripts (with
ScriptAlias or the ExecCGI Option).

The CGI script is given the PATH_INFO and query string (QUERY_STRING) of the
original request from the client; these cannot be specified in the URL path.
The include variables will be available to the script in addition to the
standard CGI environment.

If the script returns a Location: header instead of output, then this will
be translated into an HTML anchor.

The include virtual element should be used in preference to exec cgi.
cmd 
The server will execute the given string using /bin/sh. The include
variables are available to the command.




>on 5/29/00 6:41 PM, Eric Aksomitis  wrote:

> Sorry, I don't think this is the perfect spot to ask:
> I just set up a Mandrake 7 Server to serv Perl/CGI/MySQL Test client
> sites.  The sites used to be virtual hosts with their own domain name,
> and now they will be under a ~username location.


>   I have poured through
> apache FAQ's and could not find a mailing list, so:
> 1 (And most important):
> The stock HTML I got calls CGI using the notation:
> exec cgi="/calendar/homepage.cgi"  with a leading /
> Now, when moved to a localhost/~clienttest1  URL, this does not work!
> It will work if I set the documentroot in http.conf to the particular
> user directory.  This worked for a while, but now I need to pass off the
> server and have it support multiple sites without any changes to config
> files.  Short of Virtual hosts and multiple IP addressesis there any
> way I can have CGI calls in SSI's think of / as the users public_html
> directory when called uner a ~user account.  All I need is the basic
> Idea or a httpd.conf file!!!
> 
> 2 (And not as important):
> Again, after looking through ALL the docs I could find, I can't get
> suExec to work under apache.  My stock installation tells me it found a
> good suexec wrapper (in the log file on startup), but it doesn't seem to
> be being used to execute cgi as the user when under a ~user account.
> How do I turn this on?  Again, any help appreciated.
> 
> Thanx for your help in advance, will trade any Oracle Knowledge for
> anyone who wants it (being a well versed performance Tuner and PL/SQL
> developer!)
> 
> Eric Aksomitis
> http://www.dlcwest.com/~jed/re_answer.shtml
> 

Reply via email to