You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
857 B
Plaintext
43 lines
857 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
#root /var/www/html;
|
|
root /media/floppy/noweb;
|
|
|
|
# Add index.php to the list if you are using PHP
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name _;
|
|
|
|
error_page 404 /insert.html;
|
|
|
|
location = /insert.html {
|
|
root /var/www/static;
|
|
internal;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /static {
|
|
alias /var/www/static;
|
|
autoindex on;
|
|
}
|
|
|
|
# /cgi-bin/foo.cgi ==> /media/floppy/noweb/cgi-bin/foo.cgi
|
|
location ~ ^/cgi-bin/.*\.cgi$ {
|
|
root /media/floppy/noweb/cgi-bin;
|
|
rewrite ^/cgi-bin/(.*)\.cgi /$1.cgi break;
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
fastcgi_param SCRIPT_FILENAME /media/floppy/noweb/cgi-bin$fastcgi_script_name;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|