Skip to content

Instantly share code, notes, and snippets.

@dejanmarkovic
Created November 20, 2013 20:35
Show Gist options
  • Save dejanmarkovic/7570530 to your computer and use it in GitHub Desktop.
Save dejanmarkovic/7570530 to your computer and use it in GitHub Desktop.
Apache slow on (local machine) localhost
For me, setting the ServerName property in httpd.conf fixed the delays (they were up to 10 seconds at worst):
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
ServerName 127.0.0.1:80
Source: http://serverfault.com/questions/66347/the-localhost-response-very-slow-why
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment