Document toolboxDocument toolbox

(2024.1) Apache

Installation

Apache

yum install httpd

Mod SSL, http2, headers

yum install mod_ssl mod_headers mod_http2

MINIMAL (REQUIRED) APACHE MODULES

alias_module (shared) - ''Alias'' and ''ScriptAlias'' directives authz_host_module (shared) - ''Allow'' and ''Deny'' directives autoindex_module (shared) - Generates directory indexes, automatically core_module (static) - The core Apache module dir_module (shared) - ''DirectoryIndex'' directive env_module (shared) - Modifies the environment http_module (static) - Handles HTTP protocol log_config_module (shared) - Enables logging configuration logio_module (shared) - Enables log writing/reading mime_module (shared) - Enables MIME (file type) alteration and interpretation mpm_prefork_module (static) - Implements a non-threaded, pre-forking (multiprocess) web server negotiation_module (shared) - Provides for content negotiation (parsing of Headers) php5_module (shared) - Enables PHP5 interpreter rewrite_module (shared) - Rule-based (regex) url rewriting engine setenvif_module (shared) - Enables ''BrowserMatch'' and ''SetEnvIf'' directives so_module (static) - Enables modules status_module (shared) - Provides information on server activity and performance version_module (shared) - Allows Version dependent configuration vhost_alias_module (shared) - Enable virtual hosts.

Configuration

Apache configuration for PCR-360 is typically done with a Virtual Host and is stored in /etc/httpd/conf.d/pcr360.conf

Create the new apache configuration file.

This example shows standard configuration for http port 80

This example shows standard configuration for https port 443

Set Apache to Start on Boot

1. Add it to chkconfig

2. Make sure it is in the chkconfig.

3. Set it to autostart