From Fedora Project Wiki

Line 7: Line 7:
Enable start on boot
Enable start on boot
<pre>$ systemctl enable httpd</pre>
<pre>$ systemctl enable httpd</pre>
=== Create self signed certificate ===
=== Install certificate ===


== Configuration ==
== Configuration ==

Revision as of 20:00, 1 May 2014

The Apache HTTP Server is the main web server worldwide

Installation

$ su root
$ yum install httpd

Enable start on boot

$ systemctl enable httpd

Create self signed certificate

Install certificate

Configuration

Configuration files are stored under /etc/httpd/conf.d/ and /etc/httpd/conf/httpd.conf is the main configuration file

Apache uses port 80 by default. To make this service available from other computers or the Internet your have to allow Apache through the firewall like this

$ firewall-cmd --permanent --add-service=http

However this exposes your computer to the Internet and potentially to attackers. Secure your installation properly before exposing your server to the Internet.