Created
August 5, 2014 18:18
-
-
Save baskaran-md/b2fddf04de1e9e790d7e to your computer and use it in GitHub Desktop.
Nginx Config - Create Delayed Response [nginx.conf]
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
# 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