Date: Tue, 21 Sep 1999 17:06:54 -0500 From: "Alejandro A. Ramirez" <ales@megared.net.mx> To: "Langa Kentane" <evablunted@earthling.net>, "FreeBSD" <Freebsd-questions@FreeBSD.ORG> Subject: Re: Apache problems getting out of hand Message-ID: <008e01bf047d$9d75a820$d2630a0a@ALES> References: <000001bf0468$cdce4320$38a8ef9b@sunnet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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:
<VirtualHost library.sunnet.co.za>
for
<VirtualHost 192.168.1.60>
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:
<VirtualHost 192.168.1.60>
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
</VirtualHost>
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 <evablunted@earthling.net>
To: FreeBSD <Freebsd-questions@FreeBSD.ORG>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008e01bf047d$9d75a820$d2630a0a>
