- Add apache conf file for specific virtualhost ServerName

This commit is contained in:
Riccardo Tribbia 2017-02-25 21:25:33 +01:00
parent 9cb902a819
commit 4947dfaad1
2 changed files with 19 additions and 0 deletions

View File

@ -15,3 +15,6 @@ WORKDIR /var/www/public
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"] ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
CMD ["supervisord"] CMD ["supervisord"]
# Update the default apache site with the config we created.
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf

View File

@ -0,0 +1,16 @@
<VirtualHost *:8888>
ServerAdmin me@mydomain.com
DocumentRoot /var/www/site
ServerName local.mydomain.com
<Directory /var/www/site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>