httpd: apr_sockaddr_info_get() failed for


I configure many Apache servers from scratch and I always forget how to fix the error

 httpd: apr_sockaddr_info_get() failed for

 

It is pretty easy, you edit the httpd.conf file and look for

# If your host doesn’t have a registered DNS name, enter its IP address here.
#
#ServerName http://www.example.com:80

 

Edit the ServerName entry to match your DNS servername.

The httpd.conf file could be anywhere depending on how you installed the server, common places are

/etc/httpd/conf/ and /var/www/apache2/conf

 

Once you have changed the file restart the server and this should eliminate the errors

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s