Description
Apache is a well known web server that is capable of running many sites on one server and one IP address. Sometimes called the Killer App for Linux. See the Apache Project page for a better description.
Installing
Like most things that are open source for Fedora it could be installed off the install media or a simple command will install it.
# yum install httpd
Configuration
Apache can be as simple and as complicated as you want it to be. However, if you are trying run just a simple website then be basic install will take care for a lot of the hard parts. Listed below is the simple configurations.
Single Site
Simply copy your site files into the /var/www/html directory and the site is configured. Be sure to have the main page named index.html.
Multi Site
In the /etc/httpd.conf file add a virtual host section for each site. Sample used from the Apache project.
<VirtualHost 10.1.2.3> ServerAdmin webmaster@host.example.com DocumentRoot /www/docs/host.example.com ServerName host.example.com ErrorLog logs/host.example.com-error_log TransferLog logs/host.example.com-access_log </VirtualHost>
Make sure for each virtual host that the main page is index.html and all configurations done.
Starting Apache
Fedora makes it real simple use the Managing Services guide to enable the httpd service to run on boot. Then simply run the following to start the apache web server.
# service httpd start
More Information
For more information and detailed information please see the ApacheProject page.