From afbc8de843afef2cecdaf5fda4b882f647ee8c89 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Sat, 19 Oct 2019 17:58:56 -0400 Subject: [PATCH] Mostly figured out --- Dockerfile | 4 +++- etc/nginx/conf.d/default.conf | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ad18d2..001b374 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins mysql-server \ nginx \ php-fpm \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /var/www/html \ + && rm /etc/nginx/sites-enabled/default # Setting up PHP COPY /etc/ /etc/ diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index c4bcc7c..14291fb 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -3,14 +3,14 @@ server { listen [::]:80; root /var/www/; - index index.php index.html; -# server_name _; + index index.html index.php; + server_name _; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { - try_files $uri /index.php; + try_files $uri $uri/ /index.html =404; } location ~ \.php$ {