Page 1 of 1
Host address, and loggin in from a "non localhost"
Posted: Mon Oct 10, 2005 11:32 pm
by joemapango
Hello All. I loaded up the live CD and ZM worked flawlessly. I purchased a video input card from one of the ad's on the website, and that worked first time also. All functions are working from the ZM "server" or localhost.
When I try to access ZM from another PC on my network I get an error. I can access the apache page, but when I go to http://my_zm_hostname_or_ip/zm I get an error,
cannot access 127.0.0.1
My question is this: How can I setup my ZM on a PC other than localhost?
I have the following in my host file
127.0.0.1 localhost zm.mydomain.com zm
10.12.0.132 zm zm.mydomain.com
Thanks for any advice you can give!
CC
Posted: Mon Oct 10, 2005 11:36 pm
by jameswilson
well i dont use a host file and just enter the actual ip of the zm machine followed by /zm/
james
RE: Host address, and loggin in from a "non localhost&q
Posted: Tue Oct 11, 2005 3:39 pm
by joemapango
Thanks for the comment, but that is not a solution to the problem. As I had stated, I can access the machine via IP OR HOSTNAME. I cannot access the ZM system via IP or HOSTNAME. The error I get is
The connection is refused when attempting to contact 127.0.0.1
Thanks for your reply anyway.
CC
Posted: Tue Oct 11, 2005 3:53 pm
by jameswilson
the fact that your seeing an errir message 127.0.0.1 means that whatever machine your using is trying to request the info from itself which obviously it wont be able to do. What i was saying is why do you need a host file unless your trying to use a name instead of ip. If you remove the host file and try to connect via ip address only what do you get then. Also id add the last / as sometimes it stops me connecting
James
Posted: Tue Oct 11, 2005 4:03 pm
by joemapango
If I connect to the PC usine the IP address (which is 10.12.0.132) I get the Apache page, same as if I was at the console. Example
http://10.12.0.132
If I connect to ZM like this:
http://10.12.0.132/zm
I get the error. Thanks for replying, but trying to access directly is not working for me. I think this has something to do with some strange apache directive statement. I have looked throught the .conf file, but I'm not an apache expert. I would gladly pay for support, but the ZM website does not list any.
Thanks again for trying to help.
Chris Curtis
Posted: Tue Oct 11, 2005 4:05 pm
by zoneminder
You don't have any of your paths in Options set to include the hostname/ip do you? They should all just be relative.
Phil
Posted: Tue Oct 11, 2005 4:18 pm
by joemapango
Hello Phil. Thanks for your reply. I used to live CD, and installed that version onto my PC. I have made no changes to Apache/ZM. BTW, the live CD was a champ. Everything worked great. This issue is the first and only problem I have had.
CC
Re: Host address, and loggin in from a "non localhost&a
Posted: Tue Oct 11, 2005 7:09 pm
by cordel
joemapango wrote:
127.0.0.1 localhost zm.mydomain.com zm
10.12.0.132 zm zm.mydomain.com
If the host file has been placed on zm server try dropping zm from 127.0.0.1 since it should not be in two places for two ips inthe same host file.
Also I have some more questions but I put those on the second thread you started for this same topic.
Regards,
Cordel
Posted: Tue Oct 11, 2005 7:37 pm
by rdmelin
Try
http://10.12.0.132/zm/
Note the trailing slash.
Posted: Tue Oct 11, 2005 8:54 pm
by joemapango
Thanks to rdmelin (and all of you who responded). Sometims it's the most basic things. Adding the / at the end did the trick. I'm feeling pretty foolish right now. I won't make this same fobar again!!!!
[quote="rdmelin"]Try
http://10.12.0.132/zm/
Note the trailing slash.[/quote]
Posted: Tue Oct 11, 2005 9:06 pm
by jameswilson
i love being ignored lol
James
Posted: Tue Oct 11, 2005 9:36 pm
by cordel
Ahh, Okay if you would like to fix that problem, there is an alias in the apache config somewhere that has that trailing slash for the zm folder. If you remove it in the alias then it will not be required to add the trailing slash in your browser. This could and most likly be in /etc/httpd/conf.d/zm.conf as we had added this shortly after we started packaging zm.
Regards,
Cordel
Posted: Tue Oct 11, 2005 11:41 pm
by rdmelin
Hi James,
Yes I see you did mention the / in an earlier post
Hey Corey, remember that the Mandrake RPM is diff from the FC versions. I leave zm under /var/www/html so I don't use any alias, or any zm.conf for apache. I went back to this configuration to make it easy to upgrade an installation from source with an RPM version.
Posted: Sun Oct 23, 2005 9:53 am
by cordel
Opp's
Sorry all I forgot, and I should know better
Disregard the /etc/httpd/conf.d/zm.conf as it will not exist in the Mandrake rpm.