diff --git a/nginx/default.conf b/nginx/default.conf index 891c271..227d7e2 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -1,8 +1,9 @@ server { listen 80 default_server; - server_name localhost aLeaf.local; + server_name localhost aleaf.local; root /var/www/html/website/public; + index index.php index.html; error_log /var/log/nginx/error.log; @@ -18,7 +19,7 @@ server { location ~ \.php$ { include fastcgi_params; - fastcgi_pass php:9000; + fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; @@ -26,6 +27,8 @@ server { } +# php:9000 + # Add a second, third, etc site like below # server { # listen 80; # Listening port, keep 80