Comment out saveData.php copy command in Dockerfile and add vhost.conf for Apache configuration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
fencl
2025-09-01 20:37:05 +02:00
parent 0af94cb37e
commit de3b49b9b7
2 changed files with 18 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ WORKDIR /var/www/html
RUN mkdir /app
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
COPY adf/saveData.php /var/www/html/saveData.php
# COPY adf/saveData.php /var/www/html/saveData.php
WORKDIR /app

17
vhost.conf Normal file
View File

@@ -0,0 +1,17 @@
# File: .docker/apache/vhost.conf
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
<VirtualHost *:80>
ServerName localhost
DocumentRoot /app
<Directory "/app">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>