RE: [users@httpd] Why doesn't Apache bind socket to vhost's IP addr.?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Joshua,

ouch, I knew I missed something vital.

You see, I errantly first tried to put the additional Listen
in the vhost container where it definitely didn't belong.

# apachectl configtest
Syntax error on line 5 of /var/www/apache/conf.d/vhosts.conf:
Listen cannot occur within <VirtualHost> section


That sort of distracted me from Listen altogehter.

But when I put it in global context, thanks to your remider,
it also binds to 192.168.2.2:80  :-)

Still what disturbs me is that it also preforked 10 accept
children
according to the StartServers setting for the main webserver.
I don't need such a waste for my private maintenance vhost.
I would like to set StartServers to 1 for the vhost.
But this isn't the allowed context for this directive either.

# apachectl configtest
Syntax error on line 4 of /var/www/apache/conf.d/vhosts.conf:
StartServers cannot occur within <VirtualHost> section

Is there a way to restrict the forked servers for this vhost
while keeping the higher numbers for the public webserver?


Ralph







> -----Original Message-----
> From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx]On Behalf Of
Joshua
> Slive
> Sent: Tuesday, February 28, 2006 5:32 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] Why doesn't Apache bind socket to 
> vhost's IP
> addr.?
> 
> 
> On 2/28/06, Ralph.Grothe@xxxxxxxxxxxxxx 
> <Ralph.Grothe@xxxxxxxxxxxxxx> wrote:
> >
> > # cat /etc/httpd/conf.d/vhosts.conf
> > <VirtualHost 192.168.2.2:80>
> >     ServerName  tintin_ic1:80
> >     ServerAdmin root@localhost
> >     DocumentRoot /var/www/apache/html
> >     CustomLog   logs/ic1.log common
> >     ErrorLog    logs/ic1_error.log
> >     LogLevel    debug
> > </VirtualHost>
> >
> >
> > As said the configtest is syntactically correct
> > which can easily be verified by putting some junk chars
> > in the above vhost container file.
> >
> > Nevertheless, when I start the webserver I see no listening
> > socket
> > for this vhost's IP address,
> > but only those for the publich IP (ports 80 and 443).
> >
> > I raised the LogLevel to debug but in error_log the only
virtual
> > host
> > entries that appear on startup relate to the SSL container.
> >
> > What have I missed?
> 
> Listen 192.168.2.2:80
> 
> Joshua.
> 
>
-----------------------------------------------------------------
----
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest:
users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux