From Fedora Project Wiki

No edit summary
Line 12: Line 12:
Configuration files are stored under <code>/etc/httpd/conf.d/</code> and <code>/etc/httpd/conf/httpd.conf is the main configuration file
Configuration files are stored under <code>/etc/httpd/conf.d/</code> and <code>/etc/httpd/conf/httpd.conf is the main configuration file


Apache uses port 80 by default. To open the port
Apache uses port 80 by default. To make this service available from other computers open the port
<pre>$ firewall-cmd --permanent --add-service=http</pre>
<pre>$ firewall-cmd --permanent --add-service=http</pre>
However this exposes your computer to the Internet and potentially to attackers. Secure your installation properly before exposing your server to the Internet

Revision as of 19:53, 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

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 open the port

$ 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