Merge pull request #5 from MarcHagen/patch-1
Move root out of location context
This commit is contained in:
commit
d2d5df7fef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user