Skip to content

Commit 425af2c

Browse files
docs: remove redundant deny directive and add socket path hint
1 parent 4452987 commit 425af2c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/WEBSERVER.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ server {
4343
4444
# Deny access to protected directories across all instances
4545
location ~ /(typo3conf|var|config)/ {
46-
deny all;
4746
return 403;
4847
}
4948
5049
# PHP-FPM for all .php files including subdirectories
5150
location ~ \.php$ {
5251
include fastcgi_params;
53-
fastcgi_pass unix:/run/php/php-fpm.sock;
52+
fastcgi_pass unix:/run/php/php-fpm.sock; # adjust to match your PHP-FPM pool socket
5453
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
5554
try_files $uri =404;
5655
}
@@ -79,7 +78,7 @@ server {
7978
8079
location ~ \.php$ {
8180
include fastcgi_params;
82-
fastcgi_pass unix:/run/php/php-fpm.sock;
81+
fastcgi_pass unix:/run/php/php-fpm.sock; # adjust to match your PHP-FPM pool socket
8382
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
8483
try_files $uri =404;
8584
}

0 commit comments

Comments
 (0)