Created
September 4, 2014 18:20
-
-
Save akx/1e792222234016ceed27 to your computer and use it in GitHub Desktop.
Really tiny uWSGI buildconf to serve a CGI app over HTTP
This file contains 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
[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 = |
This file contains 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
#!/bin/bash | |
echo "Status: HTTP/0.9 200 OK" | |
echo "" | |
set |
This file contains 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
./uwsgi --http 0:8000 --static-map /static=. --cgi /=my_cgi.sh --http-modifier1 9 |
This file contains 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
# 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