From Fedora Project Wiki

No edit summary
Line 2: Line 2:
{{Docs_beat_open}}
{{Docs_beat_open}}


==Varnish==


== Introducing ==
==Apache==
 
==== Introducing ====
Fedora can be used as great web-server, based on Apache, which included in distributive.
Fedora can be used as great web-server, based on Apache, which included in distributive.




== Before starting ==
==== Before starting ====
Before starting httpd, you should accept all input connections to http port in iptables. Usually it's 80.
Before starting httpd, you should accept all input connections to http port in iptables. Usually it's 80.
<pre>iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT</pre>
<pre>iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT</pre>
Line 16: Line 19:
If you can see changes - everything is ok.
If you can see changes - everything is ok.


== Configuring httpd.conf ==
==== Configuring httpd.conf ====
First of all, you should configure your httpd. The configuration file you can found in /etc/httpd/conf/httpd.conf
First of all, you should configure your httpd. The configuration file you can found in /etc/httpd/conf/httpd.conf




== Starting httpd ==
==== Starting httpd ====
You can start httpd by:
You can start httpd by:
<pre>#httpd -k start</pre>
<pre>#httpd -k start</pre>

Revision as of 02:46, 11 August 2010

DocsProject Header docTeam1.png
Note.png
Beat is open
This beat is now ready to have Fedora 25 content added by the beat writer


Varnish

Apache

Introducing

Fedora can be used as great web-server, based on Apache, which included in distributive.


Before starting

Before starting httpd, you should accept all input connections to http port in iptables. Usually it's 80.

iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT

eth0 - is your ethernet device.

After that, see chain INPUT in iptables - insert

iptables -L

If you can see changes - everything is ok.

Configuring httpd.conf

First of all, you should configure your httpd. The configuration file you can found in /etc/httpd/conf/httpd.conf


Starting httpd

You can start httpd by:

#httpd -k start

If you want to restart or stop httpd, use the following commands:

#httpd -k restart
#httpd -k stop