Updated Nginx (markdown)

d47081 2023-10-14 07:30:00 +03:00
parent 8633c8e5f8
commit 7d24ce2e41

@ -6,15 +6,26 @@ https://symfony.com/doc/current/setup/web_server_configuration.html
## Sub-directory location ## Sub-directory location
Project sources:
`/var/www/YGGverse/YGGtracker`
URL example: URL example:
`http://[0200::/7]/yggtracker` `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 { server {
listen [::]:80 default; listen [::]:80 default;
@ -40,6 +51,8 @@ server {
} }
location @yggtracker { location @yggtracker {
# Provide actual php -v
fastcgi_pass unix:/run/php/php8.1-fpm.sock; fastcgi_pass unix:/run/php/php8.1-fpm.sock;
include fastcgi_params; include fastcgi_params;