mirror of
https://github.com/nosial/FileServer.git
synced 2025-06-06 13:38:36 +00:00
Some checks failed
Docker CI/CD / build-and-save (push) Has been cancelled
Docker CI/CD / build-and-push (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
37 lines
No EOL
796 B
Nginx Configuration File
37 lines
No EOL
796 B
Nginx Configuration File
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
listen 8081;
|
|
server_name localhost;
|
|
|
|
access_log /var/log/access.log;
|
|
error_log /var/log/error.log;
|
|
|
|
root /var/www/html;
|
|
index index.php;
|
|
|
|
# Handle all requests
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string =503;
|
|
autoindex off;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
|
|
# Block any .ht* files
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
}
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
} |