Skip to content

Commit

Permalink
tweaking the apache config: using NO_DETACHE + ServerLimit 1 instead …
Browse files Browse the repository at this point in the history
…of -X (which turns on debugging mode, might make it slower). and also adjusting the ListenBacklog size so it won't drop requests so soon
  • Loading branch information
Pedro Belo committed Jan 23, 2012
1 parent acaeb27 commit cada9ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tail -F /app/apache/logs/error_log &
tail -F /app/apache/logs/access_log &
export LD_LIBRARY_PATH=/app/php/ext
echo "Launching apache"
exec /app/apache/bin/httpd -X
exec /app/apache/bin/httpd -DNO_DETACH
EOF

chmod +x boot.sh
Expand Down
4 changes: 4 additions & 0 deletions conf/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ ServerRoot "/app/apache/"
#Listen 12.34.56.78:80
Listen 80

ServerLimit 1
MaxClients 1
ListenBackLog 1024

#
# Dynamic Shared Object (DSO) Support
#
Expand Down

0 comments on commit cada9ca

Please sign in to comment.