From 7d24ce2e4175999235529f789cee0ed982276959 Mon Sep 17 00:00:00 2001 From: d47081 <108541346+d47081@users.noreply.github.com> Date: Sat, 14 Oct 2023 07:30:00 +0300 Subject: [PATCH] Updated Nginx (markdown) --- Nginx.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Nginx.md b/Nginx.md index f87835f..2bf8947 100644 --- a/Nginx.md +++ b/Nginx.md @@ -6,15 +6,26 @@ https://symfony.com/doc/current/setup/web_server_configuration.html ## Sub-directory location -Project sources: - -`/var/www/YGGverse/YGGtracker` - URL example: `http://[0200::/7]/yggtracker` +App sources: + +`/var/www/YGGverse/YGGtracker` + +Web root: + +`/var/www/html` + +Symlink: + +`ln -s /var/www/YGGverse/YGGtracker/public /var/www/html/yggtracker` + +Config: + ``` +# /etc/nginx/sites-available/default server { listen [::]:80 default; @@ -40,6 +51,8 @@ server { } location @yggtracker { + + # Provide actual php -v fastcgi_pass unix:/run/php/php8.1-fpm.sock; include fastcgi_params;