Mostly figured out
This commit is contained in:
@@ -7,7 +7,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
mysql-server \
|
mysql-server \
|
||||||
nginx \
|
nginx \
|
||||||
php-fpm \
|
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
|
# Setting up PHP
|
||||||
COPY /etc/ /etc/
|
COPY /etc/ /etc/
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
root /var/www/;
|
root /var/www/;
|
||||||
index index.php index.html;
|
index index.html index.php;
|
||||||
# server_name _;
|
server_name _;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.php;
|
try_files $uri $uri/ /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
|||||||
Reference in New Issue
Block a user