Load Alpine Apache proxy modules for website
This commit is contained in:
parent
654fa4a201
commit
dc63b6cb4d
|
|
@ -2,6 +2,7 @@ FROM php:8.5-fpm-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
apache2 \
|
apache2 \
|
||||||
|
apache2-proxy \
|
||||||
curl \
|
curl \
|
||||||
libcurl \
|
libcurl \
|
||||||
shadow \
|
shadow \
|
||||||
|
|
@ -35,10 +36,14 @@ RUN set -eu; \
|
||||||
printf "LoadModule %s %s\n" "$name" "$path" >> /etc/apache2/httpd.conf; \
|
printf "LoadModule %s %s\n" "$name" "$path" >> /etc/apache2/httpd.conf; \
|
||||||
fi; \
|
fi; \
|
||||||
}; \
|
}; \
|
||||||
enable_module rewrite_module modules/mod_rewrite.so; \
|
test -s /usr/lib/apache2/mod_rewrite.so; \
|
||||||
enable_module headers_module modules/mod_headers.so; \
|
test -s /usr/lib/apache2/mod_headers.so; \
|
||||||
enable_module proxy_module modules/mod_proxy.so; \
|
test -s /usr/lib/apache2/mod_proxy.so; \
|
||||||
enable_module proxy_fcgi_module modules/mod_proxy_fcgi.so; \
|
test -s /usr/lib/apache2/mod_proxy_fcgi.so; \
|
||||||
|
enable_module rewrite_module /usr/lib/apache2/mod_rewrite.so; \
|
||||||
|
enable_module headers_module /usr/lib/apache2/mod_headers.so; \
|
||||||
|
enable_module proxy_module /usr/lib/apache2/mod_proxy.so; \
|
||||||
|
enable_module proxy_fcgi_module /usr/lib/apache2/mod_proxy_fcgi.so; \
|
||||||
sed -i 's/DirectoryIndex index.html/DirectoryIndex index.php index.html/' /etc/apache2/httpd.conf; \
|
sed -i 's/DirectoryIndex index.html/DirectoryIndex index.php index.html/' /etc/apache2/httpd.conf; \
|
||||||
sed -i 's/^Listen 80$/Listen 8080/' /etc/apache2/httpd.conf; \
|
sed -i 's/^Listen 80$/Listen 8080/' /etc/apache2/httpd.conf; \
|
||||||
sed -i 's#^ErrorLog .*#ErrorLog /proc/self/fd/2#' /etc/apache2/httpd.conf; \
|
sed -i 's#^ErrorLog .*#ErrorLog /proc/self/fd/2#' /etc/apache2/httpd.conf; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue