Created
December 10, 2025 01:21
-
-
Save LevitatingBusinessMan/1da85dd849f0d2edc76c5cdafc9db30a to your computer and use it in GitHub Desktop.
configure nginx for a local cgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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