Cgi

OpenBSD nginx cgi

… and you thought that cgi is dead … nginx.conf cat << 'EOF' > /etc/nginx/nginx.conf worker_processes 1; worker_rlimit_nofile 1024; events { worker_connections 800; } http { include mime.types; default_type application/octet-stream; index index.html index.htm; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log logs/access.log main; access_log syslog:server=unix:/dev/log,severity=notice main; keepalive_timeout 65; server_tokens off; server { listen 80; listen [::]:80; server_name localhost; root /var/www/htdocs; # FastCGI to CGI wrapper server # location /cgi-bin/ { #error_log /var/log/slowcgi/errors; fastcgi_pass unix:run/slowcgi.

OpenBSD httpd cgi

… and you thought that cgi is dead … httpd.conf cat << 'EOF' > /etc/httpd.conf types { include "/usr/share/misc/mime.types" } ## A minimal default server ## server "default" { listen on * port 80 log { access "default-access.log", error "default-error.log" } location "/cgi-bin/*" { fastcgi socket "/run/slowcgi.sock" root "/" } } EOF chmod 644 /etc/httpd.conf rcctl enable httpd rcctl start httpd Slowcgi rcctl enable slowcgi rcctl start slowcgi CGI cat << 'EOF' > /var/www/cgi-bin/test.