2015-03-21 11:29:34 -07:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
#listen [::]:80 default_server ipv6only=on;
|
|
|
|
|
|
|
|
root /nexus/;
|
|
|
|
|
|
|
|
index index.html index.htm;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
#auth_basic "Restricted";
|
|
|
|
#auth_basic_user_file /etc/nginx/htpasswd;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
autoindex on;
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2015-05-23 15:02:35 -07:00
|
|
|
location /cgi-bin/ {
|
|
|
|
gzip off;
|
|
|
|
fastcgi_pass unix:/tmp/fcgiwrap.socket;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /nexus$fastcgi_script_name;
|
|
|
|
}
|
2015-03-21 11:29:34 -07:00
|
|
|
}
|