Skip to content

Instantly share code, notes, and snippets.

@baskaran-md
Created August 5, 2014 18:18
Show Gist options
  • Save baskaran-md/b2fddf04de1e9e790d7e to your computer and use it in GitHub Desktop.
Save baskaran-md/b2fddf04de1e9e790d7e to your computer and use it in GitHub Desktop.
Nginx Config - Create Delayed Response [nginx.conf]
# Ref - http://wiki.nginx.org/HttpEchoModule
# Sample Request:
# http://localhost/delay.xml?wait={delay_in_seconds}
# Place your response file under /{nginx_data_dir}/html/data/1k.xml
location = delay.xml {
echo_sleep $arg_wait;
echo_location /data/1k.xml;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment