36 lines
849 B
Plaintext
36 lines
849 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server ipv6only=on;
|
|
|
|
root /data/data/;
|
|
|
|
index index.html index.htm;
|
|
server_name localhost;
|
|
|
|
#client_body_temp_path /data/tmp/;
|
|
#fastcgi_temp_path /data/tmp/;
|
|
#proxy_temp_path /data/tmp/;
|
|
#auth_basic "Restricted";
|
|
#auth_basic_user_file /data/htpasswd;
|
|
|
|
location / {
|
|
autoindex on;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /cgi-bin/ {
|
|
alias /data/scripts/;
|
|
gzip off;
|
|
fastcgi_pass unix:/tmp/fcgiwrap.socket;
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /data/scripts$fastcgi_script_name;
|
|
fastcgi_read_timeout 600s;
|
|
fastcgi_send_timeout 600s;
|
|
client_max_body_size 0;
|
|
}
|
|
|
|
location /api/ {
|
|
rewrite ^/api/(.*) /cgi-bin/$1;
|
|
}
|
|
}
|