You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Will Trillich <wi...@serensoft.com> on 2004/04/25 06:47:15 UTC

"*:80 has no VirtualHosts" but only via perl!

with httpd.conf directives, these virtualhosts work just fine.
but trying to use perl to make them more universally
configurable, we get the "no virtualhosts error":

%VirtualHost = (
  '*:80' => [
    {
[snip]
      'ServerName' => 'one',
[snip]
    },
    {
[snip]
      'ServerName' => 'three',
[snip]
    }
  ]
)

should this be different, via mod_perl, than the following, in
apache2.conf (ala debian)?

NameVirtualHost *:80
<VirtualHost *:80>
	ServerName one
</VirtualHost>
<VirtualHost *:80>
	ServerName three
</VirtualHost>

we also tried it with _default_:80 instead of *:80. same result:

here (debian sarge, apache 2.0) it's fine as httpd.conf
directives, but as perl-configured code, it belches "no
virtualhosts". why?


Server: Apache/2.0.48 (Debian GNU/Linux) mod_perl/1.99_12 Perl/v5.8.3 mod_ssl/2.0.48 OpenSSL/0.9.7c


-- 
will trillich
mayhugh services
812 423 6314 voice
812 423 6303 fax

http://www.serensoft.com/
http://www.midwestRepo.com/
http://www.skylineAuto.net/

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


----- End forwarded message -----

-- 
will trillich
mayhugh services
812 423 6314 voice
812 423 6303 fax

http://www.serensoft.com/
http://www.midwestRepo.com/
http://www.skylineAuto.net/

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: "*:80 has no VirtualHosts" but only via perl!

Posted by Will Trillich <wi...@serensoft.com>.
still having trouble:

On Mon, Apr 26, 2004 at 11:08:15AM -0400, Brian Reichert wrote:
> On Sat, Apr 24, 2004 at 11:47:15PM -0500, Will Trillich wrote:
> > with httpd.conf directives, these virtualhosts work just fine.
> > but trying to use perl to make them more universally
> > configurable, we get the "no virtualhosts error":
> > 
> > %VirtualHost = (
> >   '*:80' => [
> >     {
> 
> Maybe perl's treating this [as] an RE?

shouldn't, but just in case we also tried

	'_default:80' => [

with the "no virtualhosts for _default_:80" message. what's up
with this?

> (Just arm-waving; I's still pre-coffee...)

delight imagery. :)

-- 
will trillich
mayhugh services
812 423 6314 voice
812 423 6303 fax

http://www.serensoft.com/
http://www.midwestRepo.com/
http://www.skylineAuto.net/

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: "*:80 has no VirtualHosts" but only via perl!

Posted by Brian Reichert <re...@numachi.com>.
On Sat, Apr 24, 2004 at 11:47:15PM -0500, Will Trillich wrote:
> with httpd.conf directives, these virtualhosts work just fine.
> but trying to use perl to make them more universally
> configurable, we get the "no virtualhosts error":
> 
> %VirtualHost = (
>   '*:80' => [
>     {

Maybe perl's treating this an RE?

(Just arm-waving; I's still pre-coffee...)

-- 
Brian Reichert				<re...@numachi.com>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large	

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html