From 8514412b0ac61367a024ab1434915748c39ee6bd Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Thu, 22 May 2025 18:48:47 +0100 Subject: [PATCH] Change nginx conf Update to correct servername and directory. Add a commented out server block to help remember that this container CAN be used for multiple sites. --- nginx/default.conf | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/nginx/default.conf b/nginx/default.conf index dd67bfd..891c271 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -1,8 +1,8 @@ server { listen 80 default_server; - # server_name localhost; - root /var/www/html/basic; + server_name localhost aLeaf.local; + root /var/www/html/website/public; index index.php index.html; error_log /var/log/nginx/error.log; @@ -24,7 +24,33 @@ server { fastcgi_param PATH_INFO $fastcgi_path_info; } - #location ~ /.ht { - # deny all; - #} } + +# Add a second, third, etc site like below +# server { +# listen 80; # Listening port, keep 80 + +# server_name aBasicPHP.local; # Server name, change to the domain name of the site +# root /var/www/html/basic; # Where the files for the site are (within container) +# index index.php index.html; + +# error_log /var/log/nginx/error.log; +# access_log /var/log/nginx/access.log; + +# sendfile off; + +# client_max_body_size 100m; + +# location / { +# try_files $uri $uri/ /index.php?$query_string; +# } + +# location ~ \.php$ { +# include fastcgi_params; +# fastcgi_pass php:9000; +# fastcgi_index index.php; +# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +# fastcgi_param PATH_INFO $fastcgi_path_info; +# } + +# }