MiniVend Akopia Services

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

Re: VendURL setting in catalog.cfg ...





> ******    message to minivend-users from The Hermit Hacker
<scrappy@hub.org>     ******
> Well, just spent the past several hours trying to narrow down where
the
> problem is, and think I might be getting somewhere, but have hit a
brick
> wall...
> In catalog.cfg, if I set VendURL to:
> VendURL                 http://www.pgsql.com/pgsql_prod.cgi
> My index.html comes up as:
> http:///pgsql_prod.cgi/index?pX4ZhP2T;;91
> If I change it back to the 'default' on install:
> VendURL                 http://__SERVER_NAME____CGI_URL__
> I get:
> http://www.pgsql.comhttp:///pgsql_prod.cgi/index?pX4ZhP2T;;956
> And if I set it to just:
> VendURL                 __CGI_URL__
> I get, again:
> http:///pgsql_prod.cgi/index?pX4ZhP2T;;995
> Where the Variables are set as:
> Variable    SERVER_NAME     www.pgsql.com
> Variable    CGI_URL         http://www.pgsql.com/pgsql_prod.cgi
> Note that I started all this with the default settings that 'makecat'
> creates, since I wanted to see it in operation *first*, and then was
going
> to play around with it.  The above changes to VendURL are after
looking at
> everything else I can think of...
> The above two variables are the only ones I've played with, that seem
to
> change the <A HREF...> output for the resultant html output...
> Currently, I'm at a loss, so any help/direction would be much
> appreciated...
> Thanks...
> Marc G. Fournier                   ICQ#7615664               IRC Nick:
Scrappy
> Systems Administrator @ hub.org
> primary: scrappy@hub.org           secondary:
scrappy@{freebsd|postgresql}.org
>

Hi Marc, this is my simple.cfg (/home/mvend/simple.cfg)

(a part from it)
SERVERNAME     www.buchonline.net
STOREID        simple
DEMOTYPE        simple
[del]
ENCRYPTOR       none
PERMTYPE    M
# Full path to catalogdirectory "simple" outside from the public www
directory
CATROOT         /www/catalogs/simple
# -----> Hi Marc... make sure, your setting of your webserver is right
(if you use apache)
CGIDIR          /www/cgi-bin
# The URL location of the CGI program, without the http://
# or server name.
# http://www.virtual.com/cgi-bin/prog
#                       ^^^^^^^^^^^^^
# http://www.virtual.com/program.cgi
#                       ^^^^^^^^^^^^
CGIURL          /cgi-bin/simple
ALIASES         /cgi-bin/simple
DOCUMENTROOT    /www/www_public/mvshop
SAMPLEHTML      /www/www_public/mvshop/simple
IMAGEDIR        /www/www_public/mvshop/simple/images
IMAGEURL        /images

Summery of my filessystem is

/www/cgi-bin
/www/catalogs/simple
/www/www_public/mvshop
/www/www_public/mvshop/simple
/www/www_public/mvshop/simple/images

And this is my catalog.cfg (/home/mvend/simple/catalog.cfg)
(a part from it)
Variable    SERVER_NAME     __MVC_SERVERNAME__
Variable    CGI_URL         __MVC_CGIURL__
Variable    SECURE_SERVER   http://__MVC_SERVERNAME__
Variable    IMAGE_DIR       __MVC_IMAGEURL__
Variable    DOCROOT         __MVC_DOCUMENTROOT__
Variable    SAMPLEHTML      __MVC_SAMPLEHTML__
Variable    SAMPLEURL       __MVC_SAMPLEURL__
## END SITE CONFIGURATION
VendURL                 http://__SERVER_NAME____CGI_URL__

Short summary:
You define site information in simple.cfg and not in catalog.cfg.
You make a catalog with i.e. "/home/mvend/bin/makecat simple" (use the
configfile "/home/mvend/simple.cfg")
After building new catalog, go to /www/catalogs/simple/catalog.cfg and
look into this file. You get a hints if something goes wrong.

Good luck

Joachim



Search for: Match: Format: Sort by: