user root;
worker_processes  16;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;

    keepalive_timeout  65;

    server {
        listen       8000;
        server_name  localhost;

        location / {
                autoindex on;
                root /panda/;
        }

        location /cgi-bin/ {
                gzip off;
                
                auth_basic           "Admin Area";
                auth_basic_user_file /etc/.htpasswd;

                include fastcgi_params;
                fastcgi_pass unix:/var/run/fcgiwrap.socket;
                fastcgi_param SCRIPT_FILENAME /panda/$fastcgi_script_name;
        }

        location /static {
                alias /static/; 
        }
    }
}
