on 5/30/00 8:32 AM, [EMAIL PROTECTED]  wrote:

>> 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"
> 
> This is the problem, but the root of it is it's a test site to mirror
> prod sites which ARE there own virtual host.  ANother thing is when
> using relative notation, it seems to start the perl script with a
> working directory of the current directory (where the .shtml file is).
> With exact notation, it starts it in the end directory of the cgi
> include.
> 
> It looks as though it is not possible to exactly mimic a virtual host under
> a ~user account without Massive re-coding.  Unless it is, Please advise...
> 
> Thanx, though!
> 
> Eric
> 
OK let me see if I've got your set up straight:
 the production server has domains set up as virtual hosts > www.client.com
but your test box is test up as www.testbox.com/~client

if this is the case then it is very easy to set up virtual hosts on apache
so you can exactly mimic the production server.

add each virtual domin to the /etc/hosts
x.x.x.x www.client1.com
x.x.x.x www.client2.com

etc. where x.x.x.x is your test box's ip address

then add a virtual host segment to your http.conf file for each domain
(example below)

also add this line to http.conf
NameVirtualHost x.x.x.x

restart apache and your good to go.

<VirtualHost www.client1.com>
    ServerAdmin webmaster@ client1.com
    ServerName www.client1.com
    DocumentRoot/home/websites/client1
    ErrorLog logs/www.client1.com-error_log
    TransferLog logs/www.client1.com-access_log
    AddType application/x-httpd-php3 .php
    DirectoryIndex welcome.html welcome.php index.html index.htm
<Directory /home/websites/client1>
    Options FollowSymlinks
    AllowOverride AuthConfig FileInfo Indexes Limit Options
</Directory>

</VirtualHost>


Reply via email to