File tree Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:3.19
3
3
# Install dependencies and fix issue in apache
4
4
RUN apk --no-cache upgrade
5
5
RUN apk add --no-cache \
6
- apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6
+ apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
7
7
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
8
8
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
9
9
php83-mysqli php83-sockets php83-xmlreader php83-redis php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10
- php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10
+ php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
11
11
perl mysql-client tar curl imagemagick nodejs npm \
12
12
certbot openssl openssl-dev dcron \
13
13
rsync shadow ncurses \
Original file line number Diff line number Diff line change @@ -65,3 +65,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
65
65
SSLCertificateFile /etc/ssl/certs/webserver.cert.pem
66
66
SSLCertificateKeyFile /etc/ssl/private/webserver.key.pem
67
67
</VirtualHost>
68
+
69
+ #Add FPM FCGI configuration
70
+ <FilesMatch \.php$>
71
+ SetHandler "proxy:fcgi://127.0.0.1:9000"
72
+ </FilesMatch>
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:3.19
3
3
# Install dependencies and fix issue in apache
4
4
RUN apk --no-cache upgrade
5
5
RUN apk add --no-cache \
6
- apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6
+ apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
7
7
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
8
8
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
9
9
php83-mysqli php83-sockets php83-xmlreader php83-redis perl php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10
- php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10
+ php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
11
11
mysql-client tar curl imagemagick nodejs npm \
12
12
certbot openssl git openssl-dev dcron \
13
13
rsync shadow jq ncurses \
Original file line number Diff line number Diff line change @@ -71,3 +71,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
71
71
# Used for client based certificates
72
72
#SSLCACertificateFile /etc/ssl/certs/CAcustomclientbasedwebserver.cert.pem
73
73
</VirtualHost>
74
+
75
+ #Add FPM FCGI configuration
76
+ <FilesMatch \.php$>
77
+ SetHandler "proxy:fcgi://127.0.0.1:9000"
78
+ </FilesMatch>
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ FROM alpine:edge
3
3
# Install dependencies and fix issue in apache
4
4
RUN apk --no-cache upgrade
5
5
RUN apk add --no-cache \
6
- apache2 apache2-ssl apache2-utils git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
6
+ apache2 apache2-ssl apache2-utils apache2-proxy git php83 php83-tokenizer php83-ctype php83-session php83-apache2 \
7
7
php83-json php83-pdo php83-pdo_mysql php83-curl php83-ldap php83-openssl php83-iconv \
8
8
php83-xml php83-xsl php83-gd php83-zip php83-soap php83-mbstring php83-zlib \
9
9
php83-mysqli php83-sockets php83-xmlreader php83-redis perl php83-simplexml php83-xmlwriter php83-phar php83-fileinfo \
10
- php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu \
10
+ php83-sodium php83-calendar php83-intl php83-opcache php83-pecl-apcu php83-fpm \
11
11
mysql-client tar curl imagemagick nodejs npm \
12
12
certbot openssl git openssl-dev dcron \
13
13
rsync shadow jq ncurses \
Original file line number Diff line number Diff line change @@ -71,3 +71,8 @@ CustomLog "|/usr/sbin/rotatelogs -n 5 ${APACHE_LOG_DIR}/access.log 86400" combin
71
71
# Used for client based certificates
72
72
#SSLCACertificateFile /etc/ssl/certs/CAcustomclientbasedwebserver.cert.pem
73
73
</VirtualHost>
74
+
75
+ #Add FPM FCGI configuration
76
+ <FilesMatch \.php$>
77
+ SetHandler "proxy:fcgi://127.0.0.1:9000"
78
+ </FilesMatch>
You can’t perform that action at this time.
0 commit comments