mirror of
https://github.com/linuxserver/docker-lychee.git
synced 2026-02-05 19:09:11 +08:00
23 lines
475 B
Plaintext
23 lines
475 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
root /var/www/localhost/;
|
|
index index.html index.htm index.php;
|
|
|
|
server_name _;
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html /index.php?$args =404;
|
|
}
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
# With php7-cgi alone:
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
# With php7-fpm:
|
|
#fastcgi_pass unix:/var/run/php7-fpm.sock;
|
|
fastcgi_index index.php;
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
}
|
|
}
|