FANDOM


DescriptionEdit

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.

InstallingEdit

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

ConfigurationEdit

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 SiteEdit

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 SiteEdit

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 ApacheEdit

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 InformationEdit

For more information and detailed information please see the ApacheProject page.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.