Re: Apache VH Help needed
This is an apache configuration issue AND a DNS configuration issue.
An A record or a CNAME for * in the zone file for the domain
* IN A ip-address-of-www.customer1.com
* IN CNAME www.customer1.com.
However this will also mean that:
a: no other ip-s can be given out in the domain (but they can be assigned
from a subdomain)
b: not all ip-s will point to www.customer1.com (the A records pointing to
somewhere else must be before the * line in the zone file).
A CNAME and A record coexisting for the same name can cause problems (eg.
an A record for * and a specific CNAME).
The rewrite engine must rewrite all addresses that and with .customer1.com
to www.customer1.com or else they will be served from their own
directory, not from /var/customers/webs/www.customer1.com
On Wed, 29 Mar 2000, Cory Snavely wrote:
> This isn't an Apache configuration issue, it's a DNS configuration issue.
> You need an A record for the customer1.com domain with the IP address of the
> server. This assumes, of course, that this is OK with your customer--they
> may already have an A record in place for their domain. This also assumes
> you have some control over the DNS records.
> ----- Original Message -----
> From: "Jaume Teixi" <email@example.com>
> To: "Debian User" <firstname.lastname@example.org>
> Sent: Wednesday, March 29, 2000 4:58 AM
> Subject: Apache VH Help needed
> > I've setup this in order to not to restart apache each time I enter a
> > new customer:
> > My problem is How To config that automatically *.customer1.com points
> > to www.customer1.com ?
> > I've setup on httpd.conf :
> > <VirtualHost 18.104.22.168>
> > ServerName customers.mydomain.com
> > CustomLog /var/customers/logs/access_customers.log
> > VirtualDocumentRoot /var/customers/webs/%0
> > VirtualScriptAlias /var/customers/webs/%0/cgi-bin
> > </VirtualHost>
> > On /var/customers/webs/ I put each directory as www.customer1.com,
> > www.customer2.com, etc.
> > thanks!
> > --
> > Unsubscribe? mail -s unsubscribe email@example.com <
> Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null