diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..7034c75 --- /dev/null +++ b/.htaccess @@ -0,0 +1,6 @@ +RewriteEngine On + +# Redirigir a index si no existeix el fitxer +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^ index.html [L] \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..02df61b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM php:8.2-apache + +# Instal·lar extensions necessàries +RUN docker-php-ext-install mysqli pdo pdo_mysql + +# Activar mod_rewrite +RUN a2enmod rewrite + +# Copiar projecte +COPY . /var/www/html/ + +# Permisos +RUN chown -R www-data:www-data /var/www/html \ No newline at end of file