MiniVend Akopia Services

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

Re: [mv] cgi-bin not wanted



On Mon, 4 Oct 1999 jojo@buchonline.net wrote:

>******    message to minivend-users from jojo@buchonline.net     ******
><HEAD>
><META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.shop.com/cgi-bin/shopname/pagename.html">
></HEAD>
>
>On  4 Oct, Alexei Yakimovich wrote:
>> ******    message to minivend-users from Alexei Yakimovich <alex@del.donetsk.ua>     ******
>> 
>> <html>
>> <head>
>> <script language="JavaScript">
>> function Redirect()
>> {
>>         document.location.href="http://www.shop.com/cgi-bin/shopname";
>> }
>> </script>
>> </head>
>> <body OnLoad="Redirect();">
>> </body>
>> </html>

Either of those methods will redirect from the home page to a cgi-bin; 
although neither of them will work on ALL my browsers (I can disallow
javascript and redirects in Opera). A server side redirect is a
failproof solution. In Apache, accomplished by setting an .htaccess
file with a permanent redirect like so: 

RedirectMatch permanent /index.html$ http://www.shop.com/cgi-bin/catalog

You can usually make your own .htaccess as long as your ISP has them
enabled for you. 

But, 

If you really don't want the cgi-bin at all (which is what I thought I
heard), then you'll want to do one of two things: 

Create a one or two letter subdirectory under your site's root
directory, then set your ScriptAlias to that instead of cgi-bin. Your
ISP may have to do this for you, but you end up without cgi-bin in the
http path.

You could also set your ScriptAlias to your site's root, but that gets
scary if you've got any static pages, since you'll now have to feed
everything through cgi, including static pages and any graphics. On
the other hand, if it's a minivend-only site, that's all kinda done
for you anyway, so I guess you could. Remember to set your minivend
configuration files to point to your root instead of a cgi-bin
directory.  You'll still have the 'catalog' sitting on your url, but
not the cgi-bin.  Your ISP may have to set this up for you as well. 

Caveat: I use the redirect and one-letter methods when needed; the
other has not been tested. 

Cheers, Loy

--
Loy Ellen Gross * Web Designer & Programmer * Xcalibur Internet
  Voice: 716-344-1114 * design@iinc.com * http://www.iinc.com







Search for: Match: Format: Sort by: