Merge pull request #5 from MarcHagen/patch-1

Move root out of location context
This commit is contained in:
Tamer 2022-07-29 16:17:07 +02:00 committed by GitHub
commit d2d5df7fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,12 +29,12 @@ http {
listen [::]:80 default_server;
server_name _;
root /var/www/html;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
root /var/www/html;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
@ -46,4 +46,4 @@ http {
gzip off;
}
}
}
}