Editing httpd.conf file to detect server domain name

I get the standard, "Could not reliably determine determine…server's domain name, using 127.0.1.1 for ServerName."

I edited the httpd.conf file to read,"ServerName localhost" and rebooted. But I still get "127.0.1.1" for ServerName.

What am I missing? And thanks!

rail

4 Replies

I'm not sure what you're trying to accomplish. Based on the minimal info you provided I'd say you should be using 127.0.0.1 (which is the localhost).

Have you edited your hosts file?

Yes, I've edited the hosts file.

What I'm trying to do is determine the client IP addresses of those who visit my site. Every visitor in the access log shows up as "127.0.1.1", even those clients who have different IP addresses.

I'm new to Apache2 and servers in general. The server is working well with no problems, except for its inability to identify outside clients. I assume it's a configuration issue on my end, but I don't know what it is.

Thanks!

Have you read this?

http://askubuntu.com/questions/256013/c … omain-name">http://askubuntu.com/questions/256013/could-not-reliably-determine-the-servers-fully-qualified-domain-name

The editing of my hosts file was slightly off. Now, I get the right localhost IP address on boot. Presumably,this means that outside IP addresses will now show up in the access log. We shall see.

Thanks, everyone.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct