Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP

VirtualHost crossover

 

 

ModPerl asp RSS feed   Index | Next | Previous | View Threaded


patrick.j.conroy at gmail

Oct 12, 2004, 8:24 AM

Post #1 of 5 (1974 views)
Permalink
VirtualHost crossover

Hello All,

I am trying to set up Apache::ASP on multiple Virtual Hosts on a
single machine. The problem that I am having seems to be crossover of
the global.asa from one VirtualHost to another. In httpd.conf, I have
the following VirtualHost definitions:

<VirtualHost *:80>
DocumentRoot "/var/www/site1"
ServerName site1.domain.com

<Directory "/var/www/site1">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/var/www/site2"
ServerName site2.domain.com

<Directory "/var/www/site2">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
</Directory>
</VirtualHost>

In the .htaccess file for site1, I have:
PerlSetVar Global .
PerlSetVar GlobalPackage Apache::ASP::Site1
PerlSetVar StateDir /tmp/site1

In the .htaccess file for site2, I have:
PerlSetVar Global .
PerlSetVar GlobalPackage Apache::ASP::Site2
PerlSetVar StateDir /tmp/site2


I have different subs defined in the globabl.asa file for each site
and every once in a while on site1 I will get an error:

Couldn't execute: ERROR: Attribute "workcenter" not found at
/var/www/site2//./global.asa

I occasionally get similar errors in site2 about site1's globabl.asa.
Does anyone know where this is coming from? What did I configure
incorrectly that causes the global.asa to cross hosts?

Any help would be greatly appreciated.

Thanks,
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


chicks at chicks

Oct 12, 2004, 10:39 AM

Post #2 of 5 (1857 views)
Permalink
Re: VirtualHost crossover [In reply to]

On Tue, 12 Oct 2004, Patrick Conroy wrote:
> What did I configure
> incorrectly that causes the global.asa to cross hosts?

Do you have a
NameVirtualHost *:80
entry?

--
</chris>

Westheimer's Discovery:
"A coupla months in the laboratory can save a coupla hours in the library."

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


patrick.j.conroy at gmail

Oct 12, 2004, 11:32 AM

Post #3 of 5 (1834 views)
Permalink
Re: VirtualHost crossover [In reply to]

>
> Do you have a
> NameVirtualHost *:80
> entry?
>

I do have the "NameVrtualHost *:80" entry in the httpd.conf file.
The Virtual Hosts were working fine before I installed Apache::ASP.
And they still are for the most part. The only problem is that
references to subroutines in the global.asa sometimes seem to cross
Virtual Hosts.

Thanks,
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


nick at hellaweb

Oct 12, 2004, 6:47 PM

Post #4 of 5 (1833 views)
Permalink
RE: VirtualHost crossover [In reply to]

Try using

UniquePackages - http://www.apache-asp.org/config.html#UniquePackagcf82a357


-----Original Message-----
From: Patrick Conroy [mailto:patrick.j.conroy [at] gmail]
Sent: Tuesday, October 12, 2004 1:33 PM
To: asp [at] perl
Subject: Re: VirtualHost crossover

>
> Do you have a
> NameVirtualHost *:80
> entry?
>

I do have the "NameVrtualHost *:80" entry in the httpd.conf file.
The Virtual Hosts were working fine before I installed Apache::ASP.
And they still are for the most part. The only problem is that
references to subroutines in the global.asa sometimes seem to cross
Virtual Hosts.

Thanks,
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


josh at chamas

Oct 12, 2004, 9:57 PM

Post #5 of 5 (1839 views)
Permalink
Re: VirtualHost crossover [In reply to]

Patrick Conroy wrote:
> Hello All,
...
> I have different subs defined in the globabl.asa file for each site
> and every once in a while on site1 I will get an error:
>
> Couldn't execute: ERROR: Attribute "workcenter" not found at
> /var/www/site2//./global.asa
>
> I occasionally get similar errors in site2 about site1's globabl.asa.
> Does anyone know where this is coming from? What did I configure
> incorrectly that causes the global.asa to cross hosts?
>
> Any help would be greatly appreciated.
>

Your configuration looked fine for many virtual hosts, the
trick being the GlobalPackage config. If you set Debug to -1 or -2 or -3
and then reproduce the error and attach the relevant error_log
trace that can show the problem from Apache server start, that would
be a help.

To reproduce this in a test environment more easily you might
try to run MaxClients low and reproduce this fast that way,
so that persistence issues come up faster.

If the error_log ends up being long, I would just send this
to me privately for review.

Regards,

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl

ModPerl asp RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.