Skip to content

Instantly share code, notes, and snippets.

@akx
Created September 4, 2014 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akx/1e792222234016ceed27 to your computer and use it in GitHub Desktop.
Save akx/1e792222234016ceed27 to your computer and use it in GitHub Desktop.
Really tiny uWSGI buildconf to serve a CGI app over HTTP
[uwsgi]
xml = false
yaml = false
json = false
ssl = false
pcre = false
routing = false
debug = false
unbit = false
malloc_implementation = libc
extras =
plugins =
bin_name = uwsgi
append_version =
plugin_dir = .
embedded_plugins = cgi, corerouter, http
as_shared_library = false
locking = auto
event = auto
timer = auto
filemonitor = auto
blacklist =
whitelist =
embed_files =
embed_config =
#!/bin/bash
echo "Status: HTTP/0.9 200 OK"
echo ""
set
./uwsgi --http 0:8000 --static-map /static=. --cgi /=my_cgi.sh --http-modifier1 9
# diff uwsgi-2.0.6/uwsgiconfig.py uwsgi-2.0.6-b/uwsgiconfig.py
783c783
< if self.has_include('zlib.h'):
---
> if False and self.has_include('zlib.h'):
1039c1039
< if self.has_include('sys/capability.h') and uwsgi_os == 'Linux':
---
> if False and self.has_include('sys/capability.h') and uwsgi_os == 'Linux':
1044c1044
< if self.has_include('uuid/uuid.h'):
---
> if False and self.has_include('uuid/uuid.h'):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment