Httpd Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


==Post-Installation==
==Post-Installation==
===Make httpd dependent on network services===
For [[systemd]],
<pre>
Jan 06 21:09:04 now510.local httpd[806]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 1.2.3.4:80
Jan 06 21:09:04 now510.local httpd[806]: no listening sockets available, shutting down
</pre>


==Prevent Access to the cgi-bin Script==
==Prevent Access to the cgi-bin Script==

Revision as of 19:49, 11 January 2016

Internal

RHEL

Installation

yum install httpd

Post-Installation

Make httpd dependent on network services

For systemd,

Jan 06 21:09:04 now510.local httpd[806]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 1.2.3.4:80
Jan 06 21:09:04 now510.local httpd[806]: no listening sockets available, shutting down

Prevent Access to the cgi-bin Script

Specify Require all denied in:

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all denied
</Directory>

Configure httpd to Start at Boot

systemctl enable httpd

Start and Smoke

Start the instance and make sure it starts fine with the default configuration.