32 lines
No EOL
847 B
Nginx Configuration File
32 lines
No EOL
847 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /var/www/nextcloud;
|
|
index index.php;
|
|
|
|
client_max_body_size 16G;
|
|
fastcgi_buffers 64 4K;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$request_uri;
|
|
}
|
|
|
|
location ~ \.php(?:$|/) {
|
|
include fastcgi_params;
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param modHeadersAvailable true;
|
|
fastcgi_param front_controller_active true;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_request_buffering off;
|
|
}
|
|
|
|
location ~ \.(?:png|html|ttf|ico|js|css)$ {
|
|
try_files $uri /index.php$request_uri;
|
|
access_log off;
|
|
expires 1d;
|
|
}
|
|
} |