You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Csongor Fagyal <co...@conceptonline.hu> on 2003/01/06 18:20:07 UTC

Virtual host interference?

Hi,

I have faced this interesting problem several times. Here is what happens:
I have virtualhost A and virtualhost B both running ASP. Virtualhost A 
has a custom Perl module loaded using a simle 'use'. Now if I have a 
syntax error in A, it will create an Internal Server error. However, 
site B, which should be independent of A, also creates an error, and it 
logs(!) the error of A in its own error_log.

Both virtualhosts use a different statedir, and they do not share any 
modules/scripts.

Any ideas?? I think I am using the newest Apache/ASP/mod_perl version 
(but this happened previously in older versions as well). This is RedHat 8.

- Csongor


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Virtual host interference?

Posted by Csongor Fagyal <co...@conceptonline.hu>.
Josh Chamas wrote:

> Csongor Fagyal wrote:
>
>> Hi,
>>
>> I have faced this interesting problem several times. Here is what 
>> happens:
>> I have virtualhost A and virtualhost B both running ASP. Virtualhost 
>> A has a custom Perl module loaded using a simle 'use'. Now if I have 
>> a syntax error in A, it will create an Internal Server error. 
>> However, site B, which should be independent of A, also creates an 
>> error, and it logs(!) the error of A in its own error_log.
>>
>> Both virtualhosts use a different statedir, and they do not share any 
>> modules/scripts.
>>
>> Any ideas?? I think I am using the newest Apache/ASP/mod_perl version 
>> (but this happened previously in older versions as well). This is 
>> RedHat 8.
>>
>
> If you are setting "use strict;" in your scripts, try using the UseStrict
> config also as the errors are handled better then.
>
> If that does not work for you, then it may be helpful to see what the
> error message is, or even a trace from your error log for these requests
> when Debug -1 is set.

I have tried UseStrict and indeed I had some scripts which were not 
written in a way they should have :-) That is, I had some undeclared 
variables (well... kind of). Since then I have not seen this error ... 
the problem is that this error was occusring very rarely even when I did 
not use UseStrict. So if this error will not occur again in the next few 
months, then I will consider this issue solved :-)

Thank you for your help,
- Cs.



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Virtual host interference?

Posted by Josh Chamas <jo...@chamas.com>.
Csongor Fagyal wrote:
> Hi,
> 
> I have faced this interesting problem several times. Here is what happens:
> I have virtualhost A and virtualhost B both running ASP. Virtualhost A 
> has a custom Perl module loaded using a simle 'use'. Now if I have a 
> syntax error in A, it will create an Internal Server error. However, 
> site B, which should be independent of A, also creates an error, and it 
> logs(!) the error of A in its own error_log.
> 
> Both virtualhosts use a different statedir, and they do not share any 
> modules/scripts.
> 
> Any ideas?? I think I am using the newest Apache/ASP/mod_perl version 
> (but this happened previously in older versions as well). This is RedHat 8.
> 

If you are setting "use strict;" in your scripts, try using the UseStrict
config also as the errors are handled better then.

If that does not work for you, then it may be helpful to see what the
error message is, or even a trace from your error log for these requests
when Debug -1 is set.

Regards,

Josh

________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Virtual host interference?

Posted by Joshua Chamas <jo...@chamas.com>.
shroompicker2000 wrote:
> --- In apache-asp@yahoogroups.com, Csongor Fagyal <co...@c...> wrote:
> 
>>Hi,
>>
>>I have faced this interesting problem several times. Here is what
> 
> happens:
> 
>>I have virtualhost A and virtualhost B both running ASP. Virtualhost A 
>>has a custom Perl module loaded using a simle 'use'. Now if I have a 
>>syntax error in A, it will create an Internal Server error. However, 
>>site B, which should be independent of A, also creates an error, and it 
>>logs(!) the error of A in its own error_log.
>>
>>Both virtualhosts use a different statedir, and they do not share any 
>>modules/scripts.
>>
>>Any ideas?? I think I am using the newest Apache/ASP/mod_perl version 
>>(but this happened previously in older versions as well). This is
> 

If you are using StatINC or StatINCMatch settings, this could trigger
a check of a module that is unrelated to your Apache::ASP scripts.

If you are using another related Apache::* module that does something
similar, this could be a reason also.

Regards,

Josh



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Virtual host interference?

Posted by shroompicker2000 <sh...@cox.net>.
--- In apache-asp@yahoogroups.com, Csongor Fagyal <co...@c...> wrote:
>
> Hi,
> 
> I have faced this interesting problem several times. Here is what
happens:
> I have virtualhost A and virtualhost B both running ASP. Virtualhost A 
> has a custom Perl module loaded using a simle 'use'. Now if I have a 
> syntax error in A, it will create an Internal Server error. However, 
> site B, which should be independent of A, also creates an error, and it 
> logs(!) the error of A in its own error_log.
> 
> Both virtualhosts use a different statedir, and they do not share any 
> modules/scripts.
> 
> Any ideas?? I think I am using the newest Apache/ASP/mod_perl version 
> (but this happened previously in older versions as well). This is
RedHat 8.
> 
> - Csongor
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@p...
> For additional commands, e-mail: asp-help@p...
>


I found a link which confirms the problem and proposes a big, big
workaround:

http://perl.apache.org/docs/general/control/control.html#Starting_a_Personal_Server_for_Each_Developer

Separate servers for each developer.

Why??  We never had to do that for PHP!




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org