MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: URL construction problem?



>******    message to minivend-users from The Hermit Hacker
><scrappy@hub.org>     ******
>
>
>Morning all...
>
>	Just started playing with MiniVend, and *think* I answered all the
>questions right, but the URLs appear to be written wrong.
>
>	If I go to my 'demo' page (http://www.pgsql.com/pgsql_prod), I get
>the main page.  No prob.  If I hit 'Enter the store', I get an error of:
>
>	unable to locate server http://www.pgsql.comhttp:
>
>	If I go to http://www.pgsql.com/pgsql_prod.cgi, it loads up the
>catalog properly, but any of the links to the left all try to go to:
>
>	http://www.pgsql.comhttp:///pgsql_prod.cgi
>
>	I've checked the config files, and all looks right there...and
>I've read through the FAQ and can't find anything listed there that
>appears to pertain...
>
>	Can someone point me to what I screwed up?
>
>Thanks...
>

Check catalog.cfg if the Variable CGI_URL is "/cgi-bin/pgsql_prod.cgi"
(possibly "/pgsql_prod.cgi" in your case), it should not start with "http:"
(it is no URL, it is a URI as far as I understand the acronyms)

Check minivend.cfg whether the catalog definition reasonably matches the
example for simple.

If everythin checks out, your webserver config may not set some environment
vars correctly.

Save this script as cgi on webserver in cgi directory:

======== snip =========
#!/usr/bin/perl -w

$| = 1;
print "Content-type: text/html\n\n";

print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\"><HTML><HEAD>
<TITLE>environment</TITLE><Meta http-equiv=\"content-type\"
content=\"text/html;CHARSET=iso8859-1\"></HEAD><BODY><TABLE cellspacing=2
cellpadding=2 border=1><tr><th>variable</th><th>value</th></tr>";

foreach (sort(keys(%ENV))) {
	print "<TR><TD>$_</TD><TD>$ENV{$_}</TD></TR>\n";
}
print "</TABLE></BODY></HTML>";
exit;
======== snip =========

and call with:

http://www.pgsql.com/cgi-bin/environment.cgi/test?param

in the display you should have:

PATH_INFO	/test
QUERY_STRING	param
REQUEST_URI     /cgi-bin/environment.cgi/test?param
SCRIPT_NAME	/cgi-bin/environment.cgi

If any of these are set to different values, you may need to check your
server configs. In your case the SCRIPT_NAME may be set wrong, this
happened to me when one of my providers upgraded to apache 1.3.6.

Good luck, Frank





--
Frank Miedreich
Max-Planck-Institut fuer psychologische  Forschung
Leopoldstr. 24   80802 Muenchen   +49 89 38602-237




Search for: Match: Format: Sort by: