diff --git a/app/1mindeploy/znoteaac-virtualhost-install.sh b/app/1mindeploy/znoteaac-virtualhost-install.sh new file mode 100644 index 0000000..7197e4f --- /dev/null +++ b/app/1mindeploy/znoteaac-virtualhost-install.sh @@ -0,0 +1,5 @@ +#!/bin/bash +cp /home/tibia/1mindeploy/znoteaac.conf /etc/apache2/sites-available/ +a2dissite 000-default.conf +a2ensite znoteaac.conf +service apache2 reload diff --git a/app/1mindeploy/znoteaac.conf b/app/1mindeploy/znoteaac.conf new file mode 100644 index 0000000..5c70ac1 --- /dev/null +++ b/app/1mindeploy/znoteaac.conf @@ -0,0 +1,16 @@ + + Alias /znoteaac /var/www/ZnoteAAC + ServerAdmin webmaster@localhost + DocumentRoot /var/www/ZnoteAAC + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + ErrorLog ${APACHE_LOG_DIR}/znoteaac-error.log + CustomLog ${APACHE_LOG_DIR}/znoteaac-access.log combined + + +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet diff --git a/dockerfile b/dockerfile index 7154872..ec1c83d 100644 --- a/dockerfile +++ b/dockerfile @@ -14,7 +14,7 @@ COPY app/SabrehavenServer /home/tibia/SabrehavenServer COPY app/1mindeploy /home/tibia/1mindeploy RUN chown -R tibia:tibia /home/tibia && chown -R www-data:www-data /var/www/ZnoteAAC -RUN chown -R tibia:tibia /home/tibia && chmod a+x /home/tibia/1mindeploy/*.sh && service mariadb start && /home/tibia/1mindeploy/DBCI.sh && /home/tibia/1mindeploy/pma_install.sh +RUN chown -R tibia:tibia /home/tibia && chmod a+x /home/tibia/1mindeploy/*.sh && service mariadb start && /home/tibia/1mindeploy/DBCI.sh && /home/tibia/1mindeploy/pma_install.sh && /home/tibia/1mindeploy/znoteaac-virtualhost-install.sh ENTRYPOINT ["/home/tibia/1mindeploy/entrypoint.sh"]