Steve Fosdick wrote:
> 
> I am trying to set up multiple versions of an application on a single
> server using different virtual hosts to distinguish the versions of
> the application.  Each version needs its own global.asa which I want
> to locate outside the WWW visible tree for the application.
> 
> In order to acheive this I have tried using PerlSetVar Global within
> each <VirtualHost> section of the Apache configuration file but it
> seems to be getting ignored (in that the global.asa file within in the
> directory nominated doesn't seem to get run), perhaps in favour of a
> setting in the main part of the configuration file.
> 
> Is what I am trying to do possible and if so how do I go about it please?
> 

Yes, its possible to do just as you are trying... and I would question 
whether the <VirtualHost> section is even being recognized for the site 
in question?  If after I have confirmed the working of the <VirtualHost> 
section, I might check to make sure there isn't a .htaccess being picked up 
overriding the Global setting.

For, a sample VirtualHost config, here's what I use for NodeWorks
and Apache::ASP sites:

NameVirtualHost 206.135.235.178:80

# NODEWORKS HTTP
<VirtualHost 206.135.235.178:80>
  ServerName www.nodeworks.com
  ServerAlias nodeworks.com
  Include conf/nodeworks/html.conf
  PerlSetVar StatScripts 0
</VirtualHost>

# ASP HTTP
<VirtualHost 206.135.235.178:80>
  ServerName www.apache-asp.org
  ServerAlias apache-asp.org
  DocumentRoot /usr/local/proj/mlink/site/asp
  Include conf/nodeworks/asp.conf
</VirtualHost>

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to