Alexander Dalloz wrote:
Am Do, den 12.02.2004 schrieb Rodolfo J. Paiz um 04:05:If you have 2 lines in hosts with the same IP address it often does not work correctly.
At 11:26 2/10/2004, you wrote:
I do have that line. I *added* the other line showing the simpaticus.localdomain name.2. Set up a line saying
"127.0.0.1 simpaticus.localdomain simpaticus" in /etc/hosts.
This is a big no go! Be sure you have a line in /etc/hosts looking as:
127.0.0.1 localhost.localdomain localhost
You should have one line per IP address and can add as many host names as wanted on that line.
To test if yours sees it properly, a simple ping <hostname> should tell you the IP address used and if it responds to the ping then that part is working.
Alexander talks a
Ok.
Does the main server work? If it does the vhost configuration and whereMy mistake there... /home/rpaiz was not executable, and when checking permissions I forgot that one. Rather than opening up the directory even a little, moved the vhost to the /var/www/ subdirectory. So now I have:
you defined it would helpful for detecting the error. Is /home/rpaiz set
to chmod 711?
* Default vhost: "localhost" at /var/www/html/
* Other vhost: "simpaticus" at /var/www/www.simpaticus.com/
Why is the main server configured as vhost as well? Or is it just a faulty description by you? See my other reply with direction to "apachectl -S".
Still no joy. Really contemplating starting from scratch, getting it to work with a hand-written httpd.conf and then retrying. Also, not sure that name recognition is working properly... perhaps when I type "simpaticus" into the URL field in Mozilla it's not telling Apache the right thing?
A "ping localhost" as well as "ping simpaticus" must work as it will both try to resolve the name.
Does Apache response to http://localhost? Better than using a browser might be to detect Apache working using telnet:
telnet localhost 80 GET / HTTP/1.0 <enter 2 times>
same command with: telnet simpaticus 80
And: check the relevant logfiles! Configuring Apache and not having a view to /var/log/httpd/ and /home/rpaiz/www.simpaticus.com/logs/ is bad.
Rodolfo J. Paiz
Alexander