This is an apache configuration issue AND a DNS configuration issue. Requirement 1:
An A record or a CNAME for * in the zone file for the domain customer1.com. * IN A ip-address-of-www.customer1.com or * 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). Requirement 2: 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 Robert Varga 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 PROTECTED]> > To: "Debian User" <debian-user@lists.debian.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 192.192.192.192> > > ServerName customers.mydomain.com > > CustomLog /var/customers/logs/access_customers.log > vcommon > > 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 PROTECTED] < > /dev/null > > > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >