Install Apache2 ZnoteAAC virtual host
This commit is contained in:
parent
66a1ce279e
commit
f4aae5f578
5
app/1mindeploy/znoteaac-virtualhost-install.sh
Normal file
5
app/1mindeploy/znoteaac-virtualhost-install.sh
Normal 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
|
16
app/1mindeploy/znoteaac.conf
Normal file
16
app/1mindeploy/znoteaac.conf
Normal 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
|
@ -14,7 +14,7 @@ COPY app/SabrehavenServer /home/tibia/SabrehavenServer
|
|||||||
COPY app/1mindeploy /home/tibia/1mindeploy
|
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 && 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"]
|
ENTRYPOINT ["/home/tibia/1mindeploy/entrypoint.sh"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user