52 lines
1.1 KiB
Nginx Configuration File
52 lines
1.1 KiB
Nginx Configuration File
user "www-data";
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
access_log /dev/stdout;
|
|
error_log /dev/stdout;
|
|
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
include php.conf;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
server_name _;
|
|
|
|
index index.php index.html;
|
|
|
|
proxy_read_timeout 3600;
|
|
fastcgi_read_timeout 3600;
|
|
|
|
# Remove X-Powered-By, which is an information leak
|
|
fastcgi_hide_header X-Powered-By;
|
|
|
|
root /data;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?route=$uri&$args;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri = 404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass php-handler;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
client_max_body_size 0;
|
|
}
|
|
}
|