Newbie question: Apache 1.1x or 1.2x for non-ip virtual host

Newbie question: Apache 1.1x or 1.2x for non-ip virtual host

Post by cocona » Mon, 20 Oct 1997 04:00:00



Hello all

This may be a very simple question to all you Linux / Apache die-hards,
but it puzzles me for quite a few days now. What's the problem:

I'm testing a Linux / Apache server setup. If all goes well, it will be
used as our primary webserver, serving pages of a lot of our customers.

Hence I will have to use virtual hosts to do the job. I think the
easiest way (and probably the best way) is to have non-ip based virtual
hosts.

So, on my server, I configured BIND (version 4.9.3) with two extra CNAME
RR, www.virtual1.com and www.virtual2.com; both pointing to
www.bytestore.com. When I do remote DNS queries for these two aliases, I
get the www.bytestore.com IP address. So far so good (I think?)

When I edit the http.conf file, and make two <VirtualHost> ..
</VirtualHost> entries, Apache doesn't work anymore. If I only use the
REAL www server (i.e. comment out both the virhost directives), Apache
works for this one.

I'm running Apache version 1.1x with MkLinux DR2.1.

Is the Apache version not suitable? Or MkLinux DR2.1 / BIND?
Or did I make errors configuring either programm?

TIA

---


 
 
 

Newbie question: Apache 1.1x or 1.2x for non-ip virtual host

Post by Marc Slemk » Mon, 20 Oct 1997 04:00:00



Quote:>So, on my server, I configured BIND (version 4.9.3) with two extra CNAME

Ancient version of BIND, not good.

Quote:>RR, www.virtual1.com and www.virtual2.com; both pointing to
>www.bytestore.com. When I do remote DNS queries for these two aliases, I
>get the www.bytestore.com IP address. So far so good (I think?)
>When I edit the http.conf file, and make two <VirtualHost> ..
></VirtualHost> entries, Apache doesn't work anymore. If I only use the
>REAL www server (i.e. comment out both the virhost directives), Apache
>works for this one.

You really have to be more specific than "doesn't work".  The only
answer to your problem is that you are doing it wrong, since you
don't give any information to allow a more detailed comment.

What does your error log say?  What happens when you try to
start it?  Expand on "doesn't work".  What exactly are you trying
to put in your config file?

Quote:>I'm running Apache version 1.1x with MkLinux DR2.1.

Don't use 1.1.  Use 1.2.4.  Should still work though.
>Is the Apache version not suitable? Or MkLinux DR2.1 / BIND?
>Or did I make errors configuring either programm?
>TIA
>---



 
 
 

Newbie question: Apache 1.1x or 1.2x for non-ip virtual host

Post by cocona » Tue, 21 Oct 1997 04:00:00




> (coconaut) writes:

> >So, on my server, I configured BIND (version 4.9.3) with two extra CNAME

> Ancient version of BIND, not good.

Is this true? What's the current release or is there a better
alternative?

Quote:> ></VirtualHost> entries, Apache doesn't work anymore. If I only use the
> >REAL www server (i.e. comment out both the virhost directives), Apache
> >works for this one.

> You really have to be more specific than "doesn't work".  The only answer
> to your problem is that you are doing it wrong, since you don't give any
> information to allow a more detailed comment.

Well, to be more specific, it doesn't give out any www pages except the
url not found messages in my browser. When I go back to "single host"
server, it's working fine and dandy.

Quote:> What does your error log say?  What happens when you try to start it?
> Expand on "doesn't work".  What exactly are you trying to put in your
> config file?

There are no errors in the error logs. Apache starts up fine, and keeps
running all the time. So, no weird messages or errors.

In the config file I only edit the entries needed (documentroot,
logdirectories) and the virtual host directives at the end of the
http.conf file. I made three entries, two for both the virtual hosts
(www.virtual1.com and www.virtual2.com) and one for the
www.bytestore.com server. When apache runs in "single host mode" I
comment these three out, and set a document root.

Quote:> Don't use 1.1.  Use 1.2.4.  Should still work though.

I got 1.2.4 and installed it. It showed the same problems ;-(

But, somehow, I don't know yet, it works fine now. I only took the
server (well, only the external HDD, because MkLinux boots from there)
to my daytime job. I installed it there, reconfigured the IP address and
nameserver of the linux box, it worked! I had to reconfigure these items
because we went from just a bunch of IP addresses to a whole class C
domain. Somehow, the key is in there. Anyway, it works.

Thanks for your time! Maybe talking to you in a nearby future.

TIA

---


 
 
 

Newbie question: Apache 1.1x or 1.2x for non-ip virtual host

Post by Alan Coopersmi » Thu, 23 Oct 1997 04:00:00




>> (coconaut) writes:

>> >So, on my server, I configured BIND (version 4.9.3) with two extra CNAME

>> Ancient version of BIND, not good.

>Is this true? What's the current release or is there a better
>alternative?

You want at least BIND 4.9.6, or if you're feeling adventurous, 8.1.1.
See http://www.isc.org/ for more details.

--
________________________________________________________________________

Univ. of California at Berkeley         http://soar.Berkeley.EDU/~alanc/

 
 
 

1. Apache- Non-IP Virtual Hosts

Greetings,

I have a question about VirtualHost'ing options on Apache 1.1.3.  I have
had success using the <VirtualHost> option without a dedicated IP (yes,
I know the pros and cons) for non-critical domain hosting.

This has worked well for for www.domain.com however, I would like the
domain to be accessible via either domain.com and www.domain.com. I have
read the relevant document at apache.org, and it states that I should
use the ServerAlias command within the VirtualHost tags.

I have tried the following:

<VirtualHost domain.com>
ServerAlias domain.com *.domain.com
...other stuff...
</VirtualHost>

<VirtualHost www.domain.com>
ServerAlias domain.com *.domain.com
...other stuff...
</VirtualHost>

The DNS records contain A records for both domain.com and www, both of
which point to the servers IP.

The above both yield the correct results when trying www.domain.com, but
return the servers main page when trying just domain.com.

Any ideas?

Thanks,

S. William Schulz

2. no uploads in proftpd

3. maximum non-ip virtual hosts with apache?

4. Communication across V.23

5. Definitive conf for Apache 1.1.1 non-IP Virtual Hosting ?

6. StarOffice 3.1 Install problems

7. Non-IP Virtual Host with Apache

8. Linux masq router...

9. Apache non-IP Virtual Host and AOL

10. Apache server config for non IP based virtual host

11. ApacheSSL 1.2b8/0.6.6 Non-IP Virtual Hosts

12. non-IP virtual hosting

13. non-ip based virtual hosting