[フレーム]

Configuring SELinux for Apache Web Server on RHEL-Based Systems

SELinux can make it a challenge to get newly installed or custom applications to run because it blocks them from having access to certain directories in the file system hierarchy. Instead of disabling SELinux, the better option is to configure the security system so applications and services can function as expected. This is especially important when you have an application or service that requires a nonstandard configuration.

Take, for example, the Apache web server. Apache on RHEL-based distributions defaults to the /var/httpd directory as the document root and ports 80 (for HTTP) and 443 (for HTTPS) when installed.

Admins who want to use a different directory and port for a website might opt for /srv as the document root and port 8080. Out of the box, SELinux denies those nonstandard options, so they must be configured to work properly.

Get the Latest News & Insights

Sign up to get the latest security news affecting Linux and open source delivered straight to your inbox.

Please enable the javascript to submit this form " name="Submit" onclick="if (!window.__cfRLUnblockHandlers) return false; try{ return submitAcymForm('subscribe','formAcym39071', 'acymSubmitSubForm'); }catch(err){alert('The form could not be submitted '+err);return false;}" data-cf-modified-29e20a6863dfc4fca132554c-="" />
© 2024 Guardian Digital, Inc All Rights Reserved
You are now being logged in using your Facebook credentials

AltStyle によって変換されたページ (->オリジナル) /