Apache <VirtualHost> mixed with seperate httpd's

Apache <VirtualHost> mixed with seperate httpd's

Post by Jason Spea » Fri, 07 Mar 1997 04:00:00



I hope someone has experienced this and has an answer:

I am trying to set up Apache 1.1.3 on a Sun Ultra 2 with Solaris 2.5.1
using the VirtualHost directive.  There are already a number of httpd
processes running seperate from each other on the machine.

What I think I'm seeing is that Apache either wants to listen on _one_
of your IP addresses (specified by BindAddress) or _all_ your IP
addresses (not an option, as the other servers need to be able to run
also).

Can someone confirm this?

TIA,

Jason Spears

 
 
 

Apache <VirtualHost> mixed with seperate httpd's

Post by Marc Slemk » Sat, 08 Mar 1997 04:00:00


Essentially correct.  However, note that you _should_ be able
to use the VirtualHost directive with the Listen directive.
ie. use the Listen directive to specify what interfaces to
listen on, then use VirtualHosts to control how those interfaces
are handled.  I have not verified this myself and there could be
a bug or two in it; try it.


Quote:>I hope someone has experienced this and has an answer:
>I am trying to set up Apache 1.1.3 on a Sun Ultra 2 with Solaris 2.5.1
>using the VirtualHost directive.  There are already a number of httpd
>processes running seperate from each other on the machine.
>What I think I'm seeing is that Apache either wants to listen on _one_
>of your IP addresses (specified by BindAddress) or _all_ your IP
>addresses (not an option, as the other servers need to be able to run
>also).
>Can someone confirm this?
>TIA,
>Jason Spears


 
 
 

Apache <VirtualHost> mixed with seperate httpd's

Post by Paul Sutto » Sat, 08 Mar 1997 04:00:00




Quote:> I am trying to set up Apache 1.1.3 on a Sun Ultra 2 with Solaris 2.5.1
> using the VirtualHost directive.  There are already a number of httpd
> processes running seperate from each other on the machine.

> What I think I'm seeing is that Apache either wants to listen on _one_
> of your IP addresses (specified by BindAddress) or _all_ your IP
> addresses (not an option, as the other servers need to be able to run
> also).

Apache can listen to all addresses (the default), one address
(using BindAddress) or multiple addresses (using Listen instead
of BindAddress). You should be using multiple Listen
directives, one for each address. See

   http://www.apacheweek.com/features/vhost and
   http://www.apache.org/docs/bind.html

Paul
--
Paul Sutton, Technical Director, UK Web --- http://www.ukweb.com/~paul/
Apache Week: Latest news on Apache server... http://www.apacheweek.com/

 
 
 

1. Default httpd.conf says Expected </VirtualHost> but saw </VirtualHost>

I apologise in advance if this is a stupid newbie question but it has me
stumped.

I've just upgraded from 1.2.6 to 1.3.1 with mod_ssl/SSLeay.

With no changes to the default conf files (which all look fine thanks to
the wonderful configuration script) the server starts fine without SSL
but gives me:

Expected </VirtualHost> but saw </VirtualHost>

with apachectl startssl.

Just for fun I added a virtual host which is setup on our local DNS.

<VirtualHost 203.34.243.10>

DocumentRoot /psci/usr/test
ServerName test.tcp.net.au
ErrorLog logs/test-error_log
TransferLog logs/test-access_log
</VirtualHost>

Now I get the Expected </VirtualHost> without SSL as well.

After being so proud of getting it all installed, I'm back down to
Earth. What have I done?

Thanks for your time,

Phil

2. problem registering/updating smoothwall

3. <><><> MOUNTING EXTENDED PARTITION <><><>

4. KGDB for kernel 2.4.20?

5. Wanted: <><><> Unix Specialist <><><>

6. Need Monitoring Tools for Esix

7. LILO help <><><><><><>

8. how to avoid fflush after fclose?

9. Regexes for <Location> don't work right inside <virtualhost>

10. Apache's <VirtualHost> problem

11. <Alt>+<key> = <Esc><key> ?

12. *{<><>}*Linux*Screen*Difficulties*{<><>}*

13. << <<anyone using dyn-html?>> >>