Ubuntu Manpages

uwsgi_router_access

fast (pure C), self-healing, developer-friendly WSGI server

uwsgi-core-local [options...]

bind to the specified UNIX/TCP socket using default protocol
bind to the specified UNIX/TCP socket using uwsgi protocol
bind to the specified UNIX/TCP socket using HTTP protocol
force the specified modifier1 when using HTTP protocol
force the specified modifier2 when using HTTP protocol
bind to the specified UNIX/TCP socket using FastCGI protocol
bind to the specified UNIX/TCP socket using FastCGI protocol (nph mode)
force the specified modifier1 when using FastCGI protocol
force the specified modifier2 when using FastCGI protocol
bind to the specified UNIX/TCP socket using SCGI protocol
bind to the specified UNIX/TCP socket using SCGI protocol (nph mode)
force the specified modifier1 when using SCGI protocol
force the specified modifier2 when using SCGI protocol
force the specified protocol for default sockets
force the specified protocol for default sockets
create a shared sacket for advanced jailing or ipc
create a shared sacket for advanced jailing or ipc (undeferred mode)
spawn the specified number of workers/processes
spawn the specified number of workers/processes
serialize accept() usage (if possible)
set harakiri timeout
enable verbose mode for harakiri
do not enable harakiri during after-request-hook
do not enable harakiri during after-request-hook
do not enable harakiri during after-request-hook
set backtrace depth
set harakiri timeout for mule tasks
load config from xml file
load config from xml file
load configuration using the pluggable system
re-exec uwsgi with the specified config when exit code is 1
enable strict mode (placeholder cannot be used)
skip check of file descriptor 0
skip atexit hooks (ignored by the master)
set a custom placeholder
print the specified option value and exit
declare a new uWSGI custom option
(opt logic) for cycle
(opt logic) for cycle (expand glob)
(opt logic) for cycle (expand the specified num to a list starting from 1)
(opt logic) end for cycle
(opt logic) end for cycle
(opt logic) check for option
(opt logic) check for option
(opt logic) check for environment variable
(opt logic) check for environment variable
(opt logic) check for environment variable
(opt logic) check for reload
(opt logic) check for reload
(opt logic) check for file/directory existance
(opt logic) check for file/directory existance
(opt logic) check for file/directory existance
(opt logic) check for plugin
(opt logic) check for plugin
(opt logic) check for plugin
(opt logic) check for file existance
(opt logic) check for file existance
(opt logic) check for directory existance
(opt logic) check for directory existance
(opt logic) check for directory existance
(opt logic) check for directory existance
(opt logic) end if
(opt logic) end if
set options blacklist context
clear options blacklist context
set options whitelist context
clear options whitelist context
do not report (annoying) SIGPIPE
do not report (annoying) write()/writev() errors
set the maximum number of allowed write errors (default: no tolerance)
only raise an exception on write errors giving control to the app itself
disable exception generation on write()/writev()
use the specified file as config template
include the specified file as immediate configuration
daemonize uWSGI
daemonize uWSGI after app loading
stop an instance
reload an instance
pause an instance
suspend an instance
resume an instance
connect to a socket and wait for data from it
fetch/dump any supported address to stdout
set the socket listen queue size
set the amount of internal iovec/vars structures
set the maximum number of per-worker applications
set internal buffer size
enable memory report
enable the specified profiler
force CGI-mode for plugins supporting it
force UNIX socket in abstract mode (Linux only)
chmod-socket
chmod-socket
chown unix sockets
set umask
put socket in freebind mode
map sockets to specific workers
enable threads
do not wait for threads cancellation on quit/reload
automatically set processes name to something meaningful
add a prefix to the process names
add a spaced prefix to the process names
append a string to process names
set process names
set master process name
do not use multiple interpreters (where available)
exit if no app can be loaded
enable master process
do not remap stdin to /dev/null
run the Emperor
set a binary wrapper for vassals
do not follow symlinks when checking for mtime
set the Emperor process name
set the Emperor scan frequency (default 3 seconds)
set the Emperor tolerance about heartbeats
write the Emperor pid in the specified file
put the Emperor in Tyrant mode
do not follow symlinks when checking for uid/gid in Tyrant mode
run the Emperor stats server
run the Emperor stats server
spawn the emperor as soon as possibile
run the emperor in BroodLord mode
set throttling level (in milliseconds) for bad behaving vassals (default 1000)
set max throttling level (in milliseconds) for bad behaving vassals (default 3 minutes)
prefix vassals config files with exec:// if they have the executable bit
search for text file (vassal name + extension) containing the on demand socket name
search for text file (vassal name + extension) containing the on demand socket name
enable on demand mode binding to the unix socket in the specified directory named like the vassal + .socket
enable on demand mode binding to the unix socket in the specified directory named like the vassal + .socket
use the output of the specified command as on demand socket name (the vassal name is passed as the only argument)
allows the specified extension in the Emperor (vassal will be called with --config)
allows the specified extension in the Emperor (vassal will be called with --config)
use clone() instead of fork() passing the specified unshare() flags
list enabled imperial monitors
list enabled imperial monitors
add config templates to vassals config (uses --inherit)
include config templates to vassals config (uses --include instead of --inherit)
run the specified command before each vassal starts
run the specified command after vassal's death
ask emperor for sos if backlog queue has more items than the value specified
announce healtness to the emperor
automatically make workers snaphost after reload
set the maximum time (in seconds) we wait for workers and other processes to die during reload/shutdown
set the maximum time (in seconds) a worker can take to reload/shutdown (default is 60)
force exit even if a reload is requested
exit instead of brutal reload on SIGTERM
force teh spawn of the first registered gateway without a master
show this help
show this help
print content of the specified binary symbol
print content of the specified binary symbol
call waitpid(-1,...) after each request to get rid of zombies
reload workers after the specified amount of managed requests
number of seconds worker must run before being reloaded (default is 60)
reload workers after the specified amount of seconds (default is disabled)
set internal sockets timeout
disable file descriptor passing
create the specified number of shared locks
set the lock engine
set the ipcsem key via ftok() for avoiding duplicates
do not remove ipcsem's on shutdown
create a raw shared memory area of specified pages
do not close the specified file descriptor
do not close the specified file descriptor
create a shared cache containing given elements
set cache blocksize
enable persistent cache to disk
set frequency of sync for persistent cache
disable auto sweep of expired items
set the frequency of cache sweeper scans (default 3 seconds)
constantly report the cache item freed by the sweeper (use only for debug)
bind the cache udp server (used only for set/update/delete) to the specified socket
send cache update/deletion to the specified cache udp server
copy the whole content of another uWSGI cache server on server startup
update last_modified_at timestamp on every cache item modification (default is disabled)
add an item in the cache
load a static file in the cache
load a static file in the cache with gzip compression
create a new generation shared cache (keyval syntax)
enable shared queue
set queue blocksize
enable persistent queue to disk
set frequency of sync for persistent queue
run a spooler on the specified directory
map spoolers requests to a spooler directory managed by an external instance
try to order the execution of spooler tasks
chdir() to specified directory before each spooler task
set the number of processes for spoolers
do not be verbose with spooler tasks
set the maximum number of tasks to run before recycling a spooler
set harakiri timeout for spooler tasks
add a mule
add the specified number of mules
add a mule farm
set mule message buffer size
send a uwsgi signal to a server
set buffer size for signal queue
set buffer size for signal queue
maximum number of rpc slots (default: 64)
disable request logging
lock the specified file before starting, exit if locked
lock the specified file before starting, wait if locked
lock the specified file after logging/daemon setup, exit if locked
lock the specified file after logging/daemon setup, wait if locked
create pidfile (before privileges drop)
create pidfile (after privileges drop)
chroot() to the specified directory
pivot_root() to the specified directories (new_root and put_old must be separated with a space)
pivot_root() to the specified directories (new_root and put_old must be separated with a space)
setuid to the specified user/uid
setgid to the specified group/gid
add the specified group id to the process credentials
setuid to the specified user/uid IMMEDIATELY
setgid to the specified group/gid IMMEDIATELY
disable additional groups set via initgroups()
set process capability
unshare() part of the processes and put it in a new namespace
fork() again after privileges drop. Useful for jailing systems
fork() again after privileges drop. Useful for jailing systems
fork() again before privileges drop. Useful for jailing systems
fork() again before privileges drop. Useful for jailing systems
fork() again after jailing. Useful for jailing systems
fork() again after jailing. Useful for jailing systems
run the specified hook as soon as possible
run the specified hook before jailing
run the specified hook after jailing
run the specified hook in jail after initialization
run the specified hook before privileges drop
run the specified hook after privileges drop
run the specified hook before app exit and reload
run the specified hook before app loading
run the specified hook after app loading
run the specified command before exec()ing the vassal
run the specified command in the emperor after the vassal has been started
run the specified command as soon as possible
run the specified command before jailing
run the specified command after jailing
run the specified command in jail after initialization
run the specified command before privileges drop
run the specified command after privileges drop
run the specified command before app exit and reload
run the specified command before app loading
run the specified command after app loading
run the specified command before exec()ing the vassal
run the specified command in the emperor after the vassal has been started
mount filesystem as soon as possible
mount filesystem before jailing
mount filesystem after jailing
mount filesystem in jail after initialization
mount filesystem before privileges drop
mount filesystem before exec()ing the vassal
mount filesystem in the emperor after the vassal has been started
unmount filesystem as soon as possible
unmount filesystem before jailing
unmount filesystem after jailing
unmount filesystem in jail after initialization
unmount filesystem before privileges drop
unmount filesystem before exec()ing the vassal
unmount filesystem in the emperor after the vassal has been started
wait for the specified network interface to come up before running root hooks
set the timeout for wait-for-interface
wait for the specified network interface to come up before running root hooks
set the timeout for wait-for-interface
wait for the specified network interface to come up before running root hooks
set the timeout for wait-for-interface
wait for the specified network interface to come up before running root hooks
set the timeout for wait-for-interface
call the specified function as soon as possible
call the specified function before jailing
call the specified function after jailing
call the specified function in jail after initialization
call the specified function before privileges drop
call the specified function after privileges drop
call the specified function before app exit and reload
call the specified function before app loading
call the specified function after app loading
call the specified function() before exec()ing the vassal
call the specified function(char *) before exec()ing the vassal
call the specified function(char *, uid_t, gid_t) before exec()ing the vassal
call the specified function() in the emperor after the vassal has been started
call the specified function(char *) in the emperor after the vassal has been started
call the specified function(char *, pid_t) in the emperor after the vassal has been started
call the specified function(char *, pid_t, uid_t, gid_t) in the emperor after the vassal has been started
load config from ini file
load config from yaml file
load config from yaml file
load config from json file
load config from json file
create a zeromq pub/sub pair
create a zeromq pub/sub pair
create a zeromq pub/sub pair
create a zeromq pub/sub pair
weight of the instance (used by clustering/lb/subscriptions)
set weight of the instance (used by clustering/lb/subscriptions) automatically
force no-server mode
force command mode
disable deferred-accept on sockets
enable TCP NODELAY on each request
enable TCP KEEPALIVEs
set SO_SNDTIMEO
set SO_SNDTIMEO
set SO_SNDTIMEO
set SO_SNDTIMEO
set SO_SNDBUF
set SO_RCVBUF
limit processes address space/vsz
limit the number of spawnable processes
reload if address space is higher than specified megabytes
reload if rss memory is higher than specified megabytes
force the master to reload a worker if its address space is higher than specified megabytes
force the master to reload a worker if its rss memory is higher than specified megabytes
reload if the specified file descriptor is ready
brutal reload if the specified file descriptor is ready
enable Linux KSM
enable pcre jit (if available)
lock all memory pages avoiding swapping
reload uWSGI if the specified file is modified/touched
trigger reload of (only) workers if the specified file is modified/touched
trigger chain reload if the specified file is modified/touched
trigger logrotation if the specified file is modified/touched
trigger log reopen if the specified file is modified/touched
run command when the specified file is modified/touched (syntax: file command)
signal when the specified file is modified/touched (syntax: file signal)
graceful reload when the specified filesystem object is modified
brutal reload when the specified filesystem object is modified
raise a uwsgi signal when the specified filesystem object is modified (syntax: file signal)
over-engineering option for system with flaky signal management
limit request body
automatically kill workers if master dies (can be dangerous for availability)
set processes/threads priority
set cpu affinity
enable post buffering
set buffer size for read() in post buffering mode
set the amount of allowed memory allocation (in megabytes) for request body before starting printing a warning
enable creation of .json files in the specified directory during a file upload
do not fallback to default app
automatically rewrite SCRIPT_NAME and PATH_INFO
ignore SCRIPT_NAME
report exception as http output (discouraged, use only for testing)
reload a worker when an exception is raised
reload a worker when a specific exception type is raised
reload a worker when a specific exception value is raised
reload a worker when a specific exception type+value (language-specific) is raised
add an exception handler
run the udp server on the specified address
enable the stats server on the specified address
enable the stats server on the specified address
prefix stats server json output with http headers
minify statistics json output
minify statistics json output
push the stats json to the specified destination
set the default frequency of stats pushers
set the default frequency of stats pushers
subscribe to specified multicast group
set multicast ttl
set multicast loop (default 1)
enable the master fifo
set load balancing algorithm for the subscription system
try to fallback to the next part (dot based) in subscription key
subscribe to the specified subscription server
subscribe to the specified subscription server
subscribe to the specified subscription server
subscribe to the specified subscription server using advanced keyval syntax
send subscription announce at the specified interval
set tolerance for subscription servers
force unsubscribe request even during graceful reload
enable the embedded snmp server
set the snmp community string
set the interval (in seconds) of master checks
sleep for the specified number of seconds when a forkbomb is detected
force binary path
patch the uwsgi binary with a new command (before privileges drop)
patch the uwsgi binary with a new command (after privileges drop)
patch the uwsgi binary with a new command and arguments (before privileges drop)
patch the uwsgi binary with a new command and arguments (after privileges drop)
enable async mode with specified cores
set maximum number of file descriptors (requires root privileges)
set logfile/udp address
log to specified file or udp address after privileges drop
set advanced format for request logging
set advanced format for request logging
apply strftime to logformat output
apply strftime to logformat output
chown logfiles
chmod logfiles
log to syslog
send logs to the specified socket
set/append a request logger
set/append a request logger
set/append a logger
list enabled loggers
list enabled loggers
offload log writing to a thread
add an item in the log encoder chain
add an item in the log req encoder chain
drain (do not show) log lines matching the specified regexp
show only log lines matching the specified regexp
log to the specified named logger if regexp applied on logline matches
log requests to the specified named logger if regexp applied on logline matches
call abort() on segfault/fpe, could be useful for generating a core dump
create a new alarm, syntax: <alarm> <plugin:args>
tune the anti-loop alam system (default 3 seconds)
raise the specified alarm when an fd is read for read (by default it reads 1 byte, set 8 for eventfd)
raise the specified alarm when the segmentation fault handler is executed
raise the specified alarm when the segmentation fault handler is executed
raise the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp>
raise the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp>
skip the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp>
skip the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp>
list enabled alarms
list enabled alarms
set the max size of an alarm message (default 8192)
send logs to a zeromq server
delegate logging to master process
set the buffer size for the master logger. bigger log messages will be truncated
create the master logpipe as SOCK_STREAM
create the master requests logpipe as SOCK_STREAM
reopen log after reload
truncate log on startup
set maximum logfile size
set logfile name after rotation
prefix logs with date or a strftime string
prefix logs with date or a strftime string
prefix logs with a string
log responses without body
log requests slower than the specified number of milliseconds
log requests with a 4xx response
log requests with a 5xx response
log requestes bigger than the specified size
log sendfile requests
report response time in microseconds instead of milliseconds
use the ip from X-Forwarded-For header instead of REMOTE_ADDR
leave master process running as root
run privileges drop after plugin initialization
run privileges drop after apps loading
force the initial working directory to the specified value
override /bin/sh (used by exec hooks, it always fallback to /bin/sh)
chdir to specified directory before apps loading
chdir to specified directory after apps loading
set lazy mode (load apps in workers instead of master)
load apps in each worker instead of the master
set cheap mode (spawn workers only after the first request)
set cheaper mode (adaptive process spawning)
set the initial number of processes to spawn in cheaper mode
choose to algorithm used for adaptive process spawning)
number of additional processes to spawn at each overload
increase workers after specified overload
list enabled cheapers algorithms
list enabled cheapers algorithms
list enabled cheapers algorithms
don't spawn new workers if total resident memory usage of all workers is higher than this limit
if total workers resident memory usage is higher try to stop workers
set idle mode (put uWSGI in cheap mode after inactivity)
shutdown uWSGI when idle
load application under mountpoint
load application under mountpoint in the specified worker or after workers spawn
run each worker in prethreaded mode with the specified number of threads
set threads stacksize
set threads stacksize
set threads stacksize
set threads stacksize
enable virtualhosting mode (based on SERVER_NAME variable)
enable virtualhosting mode (based on HTTP_HOST variable)
add a route
add a route based on Host header
add a route based on REQUEST_URI
add a route based on QUERY_STRING
add a route based on REMOTE_ADDR
add a route based on HTTP_USER_AGENT
add a route based on REMOTE_USER
add a route based on HTTP_REFERER
add a routing label (for use with goto)
add a route based on condition
add a route based on condition (negate version)
always run the specified route action
add a final route
add a final route for the specified status
add a final route based on Host header
add a final route based on REQUEST_URI
add a final route based on QUERY_STRING
add a final route based on REMOTE_ADDR
add a final route based on HTTP_USER_AGENT
add a final route based on REMOTE_USER
add a final route based on HTTP_REFERER
add a final routing label (for use with goto)
add a final route based on condition
add a final route based on condition (negate version)
always run the specified final route action
add an error route
add an error route for the specified status
add an error route based on Host header
add an error route based on REQUEST_URI
add an error route based on QUERY_STRING
add an error route based on REMOTE_ADDR
add an error route based on HTTP_USER_AGENT
add an error route based on REMOTE_USER
add an error route based on HTTP_REFERER
add an error routing label (for use with goto)
add an error route based on condition
add an error route based on condition (negate version)
always run the specified error route action
add a response route
add a response route for the specified status
add a response route based on Host header
add a response route based on REQUEST_URI
add a response route based on QUERY_STRING
add a response route based on REMOTE_ADDR
add a response route based on HTTP_USER_AGENT
add a response route based on REMOTE_USER
add a response route based on HTTP_REFERER
add a response routing label (for use with goto)
add a response route based on condition
add a response route based on condition (negate version)
always run the specified response route action
list enabled routers
list enabled routers
set the frequency (in seconds) of websockets automatic ping packets
set the frequency (in seconds) of websockets automatic ping packets
set the tolerance (in seconds) of websockets ping/pong subsystem
set the tolerance (in seconds) of websockets ping/pong subsystem
set the max allowed size of websocket messages (in Kbytes, default 1024)
set the max allowed size of websocket messages (in Kbytes, default 1024)
set the max size of a chunked input part (default 1MB, in bytes)
set default timeout for chunked input
set a clock source
list enabled clocks
list enabled clocks
automatically add HTTP headers to response
automatically remove specified HTTP header from the response
automatically remove specified HTTP header from the response
store the specified response header in a request var (syntax: header var)
store the specified response header in a request var (syntax: header var)
check for static files in the specified directory
check for static files in the requested DOCUMENT_ROOT
check for static files in the specified directory
map mountpoint to static directory (or file)
like static-map but completely appending the requested resource to the docroot
skip specified extension from staticfile checks
search for specified file if a directory is requested
skip security checks if the file is under the specified path
put resolved paths in the uWSGI cache for the specified amount of seconds
use the specified cache for static paths
set mime types file path (default /etc/mime.types)
set mime types file path (default /etc/mime.types)
set the Expires header based on content type
set the Expires header based on content type and file mtime
set the Expires header based on filename regexp
set the Expires header based on filename regexp and file mtime
set the Expires header based on REQUEST_URI regexp
set the Expires header based on REQUEST_URI regexp and file mtime
set the Expires header based on PATH_INFO regexp
set the Expires header based on PATH_INFO regexp and file mtime
if the supplied regexp matches the static file translation it will search for a gzip version
check for a gzip version of all requested static files
check for a gzip version of all requested static files in the specified dir/prefix
check for a gzip version of all requested static files in the specified dir/prefix
check for a gzip version of all requested static files with the specified ext/suffix
check for a gzip version of all requested static files with the specified ext/suffix
enable support for the HTTP Range header
set the number of offload threads to spawn (per-worker, default 0)
set the number of offload threads to spawn (per-worker, default 0)
set static file serving mode
set static file serving mode
disable sendfile() and rely on boring read()/write()
check for response data in the specified cache (empty for default cache)
set close-on-exec on sockets (could be required for spawning processes in requests)
set uWSGI custom mode
set environment variable
load a daemontools compatible envdir
load a daemontools compatible envdir ASAP
unset environment variable
try to remove all of the generated file/sockets
write the specified content to the specified file (syntax: file=value) before privileges drop
put the processes in the specified cgroup
set value in specified cgroup option
set permission for cgroup directory (default is 700)
run in a new namespace under the specified rootfs
keep the specified mountpoint in your namespace
run in a new namespace under the specified rootfs
add network namespace
add network namespace
enable REUSE_PORT flag on socket (BSD only)
enable TCP_FASTOPEN flag on TCP sockets with the specified qlen value
enable TCP_FASTOPEN flag on TCP sockets with the specified qlen value
use sendto(..., MSG_FASTOPEN, ...) instead of connect() if supported
use sendto(..., MSG_FASTOPEN, ...) instead of connect() if supported
attach to a zerg server
fallback to normal sockets if the zerg server is not available
enable the zerg server on the specified UNIX socket
add a cron task
add a cron task (key=val syntax)
add a unique cron task
set the maximum time (in seconds) we wait for cron command to complete
select the uWSGI loop engine
list enabled loop engines
list enabled loop engines
run the specified command as worker
run the specified command as worker (after post_fork hook)
attach a command/daemon to the master process (the command has to not go in background)
attach a command/daemon to the master process managed by a pidfile (the command has to daemonize)
attach a command/daemon to the master process managed by a pidfile (the command has to NOT daemonize)
do not change the stdin of external daemons to /dev/null
load uWSGI plugins
load uWSGI plugins
load uWSGI plugins (exit on error)
load uWSGI plugins (exit on error)
add a directory to uWSGI plugin search path
add a directory to uWSGI plugin search path
list enabled plugins
list enabled plugins
try to automatically load plugins when unknown options are found
blindly load a shared library
comma separated list of allowed modifiers
remap request modifier from one id to another
dump the full list of available options
show the current config reformatted as ini
simple print
report uWSGI CFLAGS (useful for building external plugins)
dump the uwsgi.h used for building the core (useful for building external plugins)
print uWSGI version