Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created December 10, 2025 01:21
Show Gist options
  • Select an option

  • Save LevitatingBusinessMan/1da85dd849f0d2edc76c5cdafc9db30a to your computer and use it in GitHub Desktop.

Select an option

Save LevitatingBusinessMan/1da85dd849f0d2edc76c5cdafc9db30a to your computer and use it in GitHub Desktop.
configure nginx for a local cgi
load_module /usr/lib64/nginx/modules/ngx_http_cgi_module.so;
error_log /dev/stderr;
daemon off;
user rein;
events {}
http {
access_log /dev/stdout;
server {
listen 80 default_server;
listen [::]:80 default_server;
location /static {
alias static;
}
location / {
cgi_pass src/pasterb.slim;
cgi_interpreter /bin/bundle exec slimrb;
cgi_stderr /dev/stderr;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment