Fixing vhost

This commit is contained in:
Finley Ghosh 2025-08-12 20:49:59 +10:00
parent f5a12d6a2d
commit f2917c11bc

View file

@ -29,12 +29,14 @@ EXPOSE 80
# RUN sed -i "s/error_reporting = .*$/error_reporting = E_ERROR | E_WARNING | E_PARSE/" /etc/php5/apache2/php.ini
# ADD conf/php.ini /etc/php5/apache2/php.ini
# Update the default apache site with the config we created.
ADD conf/apache-vhost.conf /opt/docker/etc/httpd/vhost.common.d/cmc-sales.conf
# Copy vhost config to Apache's sites-available
ADD conf/apache-vhost.conf /etc/apache2/sites-available/cmc-sales.conf
ADD conf/ripmime /bin/ripmime
RUN chmod +x /bin/ripmime
RUN a2dissite 000-default
RUN chmod +x /bin/ripmime \
&& a2ensite cmc-sales \
&& a2dissite 000-default
# Copy site into place.
ADD . /var/www/cmc-sales