Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72454 invoked by uid 500); 2 Apr 2003 12:09:13 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 72370 invoked from network); 2 Apr 2003 12:09:12 -0000 Received: from sccrmhc02.attbi.com (204.127.202.62) by daedalus.apache.org with SMTP; 2 Apr 2003 12:09:12 -0000 Received: from jdoumani2 (12-210-40-180.client.attbi.com[12.210.40.180]) by sccrmhc02.attbi.com (sccrmhc02) with SMTP id <2003040212091100200733mre>; Wed, 2 Apr 2003 12:09:11 +0000 Message-ID: <03eb01c2f912$6828d830$6301a8c0@JDOUMANI2> From: "John Doumani" To: References: <000101c2f8d4$e518d400$0300a8c0@jeff> Date: Wed, 2 Apr 2003 04:21:36 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] VirtualHost Hosing me up Thank you Jeff And Mystery Admin for your responses! I have been successful in getting domain1.net to resolve correctly however domain2.com comes back with "The page cannot be displayed" error. Pinging www.domain2.com gets an unknown host error. I have double-checked with my domain manager to make sure that the domain is properly mapped to the same IP address. Any ideas why one domain would work but not the other? John ----- Original Message ----- From: "Jeff Cohen" To: Sent: Tuesday, April 01, 2003 9:01 PM Subject: RE: [users@httpd] VirtualHost Hosing me up > Hello, > > I am having some problems working with VirtualHost. Whenever I add the > following code to my http.conf file, I have the following strange behaviour: > > a) I can't access any files other than the index file at the document root > of the server. > b) neither one of the virtual hosts actually resolves. > > I am new to the web server world. Any insight into this would be most > appreciated. Do I need to contact the registrar of my domains and have then > point to my IP address? If so, will they both point to the same IP address > and the configuration file will resolve each to the correct document root? > > I am running Apache 2.044 on Windows 2000 professional > HI, Your configuration looks OK to me, except the ExecCGI at the document root folder unless you are running .pl and .cgi scripts in the root folder (also not really idle). The domain names that you want to host must point to the same IP address that the server listens on, that's for sure, for testing purposes you can edit you local hosts file and add the server's IP address and see the resolution. All the best, Jeff Cohen > -------------------------------------- > NameVirtualHost * > > # > # VirtualHost example: > # Almost any Apache directive may go into a VirtualHost container. > # The first VirtualHost section is used for requests without a known > # server name. > # > > ServerAdmin admin@domain1.net > DocumentRoot "D:/Program Files/Apache Group/Apache2/domain1" > ServerName hokkeko.net > ServerAlias www.domain1.net > > Options Indexes FollowSymLinks Multiviews Includes ExecCGI > AllowOverride None > Order allow,deny > allow from all > > ErrorLog logs/domain1.com-error_log > CustomLog logs/domain1.com-access_log common > > > > ServerAdmin admin@domain2.com > DocumentRoot "D:/Program Files/Apache Group/Apache2/domain2" > ServerName lthrgrizzly.com > ServerAlias www.domain2.com > > Options Indexes FollowSymLinks Multiviews Includes ExecCGI > AllowOverride None > Order allow,deny > allow from all > > ErrorLog logs/domain2.com-error_log > CustomLog logs/domain2.com-access_log common > > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org