Remove default Nginx configuration on image building stage

This commit is contained in:
Alexey Pustovalov
2019-11-01 01:57:01 +02:00
parent fa68313fb4
commit 406f32db80
12 changed files with 6 additions and 18 deletions

View File

@ -65,6 +65,7 @@ RUN set -eux && \
php7.2-mysql \
php7.2-xml \
supervisor && \
rm -f /etc/nginx/conf.d/*.conf && \
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
wget && \
apt-get ${APT_FLAGS_COMMON} autoremove && \

View File

@ -625,9 +625,6 @@ prepare_web_server_nginx() {
NGINX_SSL_CONFIG="/etc/ssl/nginx"
PHP_SESSIONS_DIR="/var/lib/php5"
echo "** Disable default vhosts"
rm -f $NGINX_CONFD_DIR/*.conf
echo "** Adding Zabbix virtual host (HTTP)"
if [ -f "$ZABBIX_ETC_DIR/nginx.conf" ]; then
ln -s "$ZABBIX_ETC_DIR/nginx.conf" "$NGINX_CONFD_DIR"