FusionDirectory-Docker/nginx-fusiondirectory.conf
2022-01-20 08:49:43 +01:00

25 lines
641 B
Text

server {
listen 80;
listen [::]:80;
root /usr/share/fusiondirectory/html;
index index.php;
server_name _;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}