Add APACHE_HTTP_PORT and APACHE_HTTPS_PORT variables.
This commit is contained in:
parent
5c705dc197
commit
37f6c7bd9a
@ -5,6 +5,7 @@ RUN apt-get update && apt-get -y install apache2
|
|||||||
ENV TZ=Europe/Paris
|
ENV TZ=Europe/Paris
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
COPY apache2.conf /etc/apache2/
|
COPY apache2.conf /etc/apache2/
|
||||||
|
COPY ports.conf /etc/apache2/
|
||||||
RUN a2enmod proxy_fcgi
|
RUN a2enmod proxy_fcgi
|
||||||
COPY fpm.conf /etc/apache2/sites-available/
|
COPY fpm.conf /etc/apache2/sites-available/
|
||||||
RUN a2ensite fpm.conf
|
RUN a2ensite fpm.conf
|
||||||
|
2
fpm.conf
2
fpm.conf
@ -1,4 +1,4 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:${APACHE_HTTP_PORT}>
|
||||||
ServerName ${SERVER_NAME}
|
ServerName ${SERVER_NAME}
|
||||||
|
|
||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
|
15
ports.conf
Normal file
15
ports.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# If you just change the port or add more ports here, you will likely also
|
||||||
|
# have to change the VirtualHost statement in
|
||||||
|
# /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
|
Listen ${APACHE_HTTP_PORT}
|
||||||
|
|
||||||
|
<IfModule ssl_module>
|
||||||
|
Listen ${APACHE_HTTPS_PORT}
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_gnutls.c>
|
||||||
|
Listen ${APACHE_HTTPS_PORT}
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
Loading…
Reference in New Issue
Block a user