Netmar User's Guide Netmar.com
Contact Netmar
Order Webhosting

Linux control panel

   
Netmar User's Guide  


Apache - Config files

Almost all of the configuration of apache is done in the httpd.conf file.

On SOLARIS machines, formatted by Netmar, the file can be found at:
/www/httpd/conf/httpd.conf

On LINUX machines (RedHat), the file can be found at:
/etc/httpd/conf/httpd.conf

Always remember to test your config before you put it into use.

If you follow directions in the file, it's pretty easy to set up your server.
Here are some variables that would be good to check on:

VARIABLE
RECCOMENDED VALUE
REASON / NOTES
ServerType Standalone Faster, Apache is in control of requests, not Inetd.
Timeout 300 300 is a good medium value
KeepAlive Off Keeps load/hammering down on server
Min/Max Spare Servers, Start Servers Set higher than default if you have a lot of traffic If you anticipate having multiple simultaneous requests, it's better to have servers waiting for them.
BindAddress your machine's IP Keeps apache under control (don't use * )
Port 80 Standard Webserver port
ServerAdmin your email address Expect to get spam here, so don't use your main email
ServerName either IP address or the main domain name served by the server IP address is a safe bet. This is what's returned to clients.
DocumentRoot wherever you want the main webpage of the server /var/www/html is the default. This page is seen if a nonexistant domain is requested.
<Directory> Change to same as DocumentRoot These are the options for the default dir.
HostnameLookups On for more detailed logs If "On", apache will reverse lookup IP addresses before putting them in the logs.
NameVirtualHost IP address (:port) You MUST have one of these for each IP address that hosts virtualhosts. Port optional.



Quick Start Guide :: Visit the old Guide :: Dedicated Server Guide

All content © 2002,2003 NetMar, Inc.