[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Undefined subroutine using a CGI Script on a Raq3



Michael wrote:

> Any way to setup DNS on a Raq3 so that it could redirect www.customer.com >
> www.myserver.com/customer ?

If what you want to do is type in the url "http://www.customer.com"; and
have the browser return a page you've installed at
www.myserver.com/customer, you do it with a redirect script in
/home/sites/www.customer.com/web or you can do it by changing the
DocumentRoot directive of the site's virtual block in
/etc/httpd/conf/httpd.conf.

If what you want to do is type in the url
"http://myserver.com/customer/"; and have the browser return a document
at www.customer.com, then you need to use a redirect script.

Here's an example of a redirect script that'd do what you want:

> <html>                                                                          
> <meta http-equiv="refresh" content="0;url=http://www.mktres.demon.co.uk/index.html";>
> </html>                                                                         

This script is in actual use on our server.  To see it in operation,
type the following into your browser:  "http://www.sdresearch.com/";.

To use it yourself, you'd need to change it to something like:

<meta http-equiv="refresh"
content="0;url=http://www.myserver.com/customer/index.html";>

Hope this helps <smile>.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205