Install Apache2 ZnoteAAC virtual host

This commit is contained in:
eroncero 2025-02-27 21:10:59 +01:00
parent 66a1ce279e
commit f4aae5f578
3 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,16 @@
<VirtualHost *:80>
Alias /znoteaac /var/www/ZnoteAAC
ServerAdmin webmaster@localhost
DocumentRoot /var/www/ZnoteAAC
<Directory /var/www/ZnoteAAC>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/znoteaac-error.log
CustomLog ${APACHE_LOG_DIR}/znoteaac-access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View File

@ -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"]