diff --git a/Dockerfile b/Dockerfile index b273d65..1bbcd2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,18 @@ -FROM php:8.2-fpm-alpine +FROM php:8.2-apache -RUN apk add --no-cache nginx +# Enable Apache rewrite module (optional but recommended) +RUN a2enmod rewrite +# Allow .htaccess overrides (even if you don't use it now) +RUN sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf + +# Set working directory WORKDIR /var/www/html + +# Copy your app COPY . /var/www/html -COPY nginx.conf /etc/nginx/nginx.conf - +# Permissions RUN chown -R www-data:www-data /var/www/html -RUN mkdir -p /run/nginx EXPOSE 80 - -CMD ["sh", "-c", "php-fpm -D && nginx -g 'daemon off;'"] diff --git a/includes/head/head.php b/includes/head/head.php index 88100d9..19ae572 100644 --- a/includes/head/head.php +++ b/includes/head/head.php @@ -1,4 +1,5 @@
+