This file contains hidden or 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 -e | |
if test "$RS_REBOOT" = "true" ; then | |
echo "Skip HTTPD install on reboot." | |
logger -t RightScale "Skip nginx install on reboot." | |
service nginx start | |
exit 0 # Leave with a smile ... | |
fi | |
This file contains hidden or 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
# I recently switched one of my Rails applications from Litespeed to Apache+Passenger | |
# with nginx on the frontend to handle static file requests. nginx proxies all non-static | |
# file requests to Apache+Passenger. I use page caching extensively, so that is why I | |
# need fast static file serving. | |
# | |
# I ran some quick tests comparing static file serving of Litespeed, Apache, and nginx. | |
# Here are the results: | |
# | |
# nginx 4400 requests/second | |
# Apache 2900 requests/second |
NewerOlder