Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CentOS-7 7.5.1804 x86_64, Apache 2.4, PHP-CGI 5.4 (FastCGI), PHP memcached 2.2,
- Updates description in centos-ssh-apache-php-fcgi.register@.service.
- Updates Dockerfile `org.deathe.description` metadata LABEL to include PHP redis module.
- Removes unused `DOCKER_PORT_MAP_TCP_22` variable from environment includes.
- Updates Apache configuration to use DSO Module identifiers for consistency.

### 2.1.0 - 2019-04-14

Expand Down
6 changes: 3 additions & 3 deletions src/etc/httpd/conf.d/00-deflate.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<IfModule mod_deflate.c>
<IfModule deflate_module>
# Identify known cases of invalidated Accept-Encoding request headers.
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
<IfModule setenvif_module>
<IfModule headers_module>
SetEnvIfNoCase \
^(Accept-EncodXng|X-cept-Encoding|[X~-]{15})$ \
^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ \
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/00-expires.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_expires.c>
<IfModule expires_module>
ExpiresActive On
ExpiresByType application/font-woff A604800
ExpiresByType application/font-woff2 A604800
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/00-headers.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_headers.c>
<IfModule headers_module>
RequestHeader unset Proxy early
Header unset X-Service-Operating-Mode
<IfDefine development>
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/00-mime-type.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_mime.c>
<IfModule mime_module>
AddEncoding gzip svgz
AddType application/font-woff woff
AddType application/font-woff2 woff2
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/00-php-operating-mode.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_php5.c>
<IfModule php5_module>
# Operating mode is production default
<IfDefine !production>
php_value error_reporting 32767
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/00-reqtimeout.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<IfModule mod_reqtimeout.c>
<IfModule reqtimeout_module>
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
</IfModule>
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/10-name-virtual-host.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<IfVersion < 2.4>
NameVirtualHost *:80
NameVirtualHost *:8443
<IfModule mod_ssl.c>
<IfModule ssl_module>
NameVirtualHost *:443
</IfModule>
</IfVersion>
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.d/10-virtual-host-encrypted.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_ssl.c>
<IfModule ssl_module>
<VirtualHost *:443>
Include conf.virtualhost.d/*.conf

Expand Down
4 changes: 2 additions & 2 deletions src/etc/httpd/conf.virtualhost.d/00-log.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ErrorLog "${APACHE_ERROR_LOG_LOCATION}"
LogLevel "${APACHE_ERROR_LOG_LEVEL}"
<IfModule mod_log_config.c>
<IfModule log_config_module>
CustomLog "${APACHE_CUSTOM_LOG_LOCATION}" "${APACHE_CUSTOM_LOG_FORMAT}" env=!SKIP_CUSTOM_LOG
</IfModule>
<IfModule mod_setenvif.c>
<IfModule setenvif_module>
<IfVersion < 2.4>
SetEnvIf Request_Method ".*" TRUSTED_ADDRESS=false
SetEnvIf Remote_Addr "^127\.0\.0\.1$" TRUSTED_ADDRESS=true
Expand Down
2 changes: 1 addition & 1 deletion src/etc/httpd/conf.virtualhost.d/00-rewrite.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<IfModule mod_rewrite.c>
<IfModule rewrite_module>
RewriteEngine On
RewriteOptions Inherit
</IfModule>
4 changes: 2 additions & 2 deletions test/shpec/operation_shpec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ function test_custom_configuration ()
/opt/php-hw/etc/httpd/conf.d/50-fcgid.conf \
1> /dev/null \
<<-CONFIG
<IfModule mod_fcgid.c>
<IfModule fcgid_module>
AddHandler fcgid-script php
AddType text/html php
DirectoryIndex index.php
Expand All @@ -1736,7 +1736,7 @@ function test_custom_configuration ()
</IfModule>

<Directory "\${APACHE_CONTENT_ROOT}/\${APACHE_PUBLIC_DIRECTORY}">
<IfModule mod_fcgid.c>
<IfModule fcgid_module>
FcgidWrapper "\${PACKAGE_PATH}/bin/php-wrapper" .php
<Files ~ (\.php$)>
Options +ExecCGI
Expand Down