24 lines
551 B
Plaintext
24 lines
551 B
Plaintext
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;
|
|
}
|
|
location /cgi-bin/ {
|
|
gzip off;
|
|
fastcgi_pass unix:/tmp/fcgiwrap.socket;
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /nexus$fastcgi_script_name;
|
|
}
|
|
}
|