From owner-freebsd-questions Tue Sep 21 15:15: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.megared.net.mx (megamail.megared.com.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id BA9561534A for ; Tue, 21 Sep 1999 15:15:00 -0700 (PDT) (envelope-from ales@megared.net.mx) Received: from ALES (ales.megared.net.mx [207.249.163.249]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id RAA06345; Tue, 21 Sep 1999 17:05:26 -0500 (CDT) (envelope-from ales@megared.net.mx) Message-ID: <008e01bf047d$9d75a820$d2630a0a@ALES> From: "Alejandro A. Ramirez" To: "Langa Kentane" , "FreeBSD" References: <000001bf0468$cdce4320$38a8ef9b@sunnet.co.za> Subject: Re: Apache problems getting out of hand Date: Tue, 21 Sep 1999 17:06:54 -0500 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 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, This is from my experience with apache, maybe Im wrong, but it works for me: If you are trying to use NameVirtualHosts: 1.- You can start commenting the Listen & the BindAddress lines. 2.- In the ServerName line, you better use an A record in your DNS for this host it doesnt matter if it isnt the www one example main.sunnet.co.za 3.- As a recomendation change the line "LogLevel warn" for "LogLevel error". 4.-In the Virtual Host section, you have to change the line: for 5.- And the line ServerName, use the A record of your DNS config file: ServerName main.sunnet.co.za and add this line for the aliases ServerAlias www.sunnet.co.za library.sunnet.co.za etc etc etc #if you have more than one name for this server as a CNAME record in your DNS Example: ServerAdmin webmaster@sunnet.co.za DocumentRoot "/usr/local/www/library.sunnet.co.za" ServerName main.sunnet.co.za ServerAlias library.sunnet.co.za www.sunnet.co.za ErrorLog /var/log/library.sunnet.error TransferLog /var/log/http/megared-access.log 6.- Type "/usr/local/sbin/apachectl restart" for restarting the http daemon. BTW This is not an Apache list, but if you need help, then I think I can help you. Have Fun... Ales ----- Original Message ----- From: Langa Kentane To: FreeBSD Sent: Tuesday, September 21, 1999 2:36 PM Subject: Apache problems getting out of hand > I have a problem with my apache. I cannot get the web page up whenever I > try to access it from my browser. I have even tried from lynx and nothing > shows. I just get an error that the site cannot be opened. With this I > attach output from top and my httpd.conf file. Please help me out as this > is getting very serious. > > I need to get this working so that I can get this machine on the internet by > next week. > > Funny thing is that apache was working well and I don't know what happened > to make this happen > > Langa Kentane > Manager: Network Operations > Sunshine Networks > Tel +27 82 928 1952 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message