Linking Apache to the Zoneminder Script
Finally the a link needs to be established to call the ZM script over Apache:
sudo ln -s /etc/zm/apache.conf /etc/apache2/sites-enabled/001-zoneminder
This makes zoneminder available under http://[server]/zm.
----
Create a new virtual host config in
/etc/apache2/sites-available.
E.g.
- copy the existing
"default" to "default-81"
- modify the port of
the virtual host as needed: <VirtualHost *:81>
- change the
document root to be the zm script location: DocumentRoot
/usr/share/zoneminder
Enable the new virtual host by setting a link from the
/etc/apache2/sites-enabled directory to the just created file:
sudo
ln -s ../sites-available/default-81 002-default-81
Reload apache:
sudo /etc/init.d/apache2 reload
Now ZM is
available under http://[server]:81
----
I'm confused what this is telling me. I
have to add a new line to that file??
I don't know if missing these steps is all
that's needed to make my zoneminder appear again.
Right now it won't show up at all internally or externally.
Is anything blatantly obvious to you guys?
Thanks,
Ally
-- <>
446 . [Humor] I just
got skylights put in my place. The people who live above me are furious.
--Steven Wright
NEW:
a50m...@gmail.com •
N9QQB (amateur radio)
"HEY YOU" (loud shouting) • Second Tops (Set Dancing) • FIND ME
ON FACEBOOK
43° 7' 17.2" N by 88° 6' 28.9" W • Elevation 815' • Grid Square
EN53wc
LAN/Telecom Analyst • Open-source Dude • Musician • Registered Linux User
385531
469 . [Commentary]
War talk by men who have been in a war is always interesting, whereas
moon talk by a poet who has not been in the moon is likely to be dull.
--Twain
805 . [Optimism] When
you have seven percent unemployed, you have ninety-three percent working.
--John F. Kennedy
<>On 09/15/2012 08:01 PM, Dale Noll wrote:
There may be another possible solution if you cannot get this to work on port 81.
Consider this. �Put everything back the way it was, �so you can access zoneminder on port 80 from your local network.On the existing server, you can configure apache as a proxy. �This way, the request still goes to the original server, but then it proxies that request to the ZM server.
If you want to try that road, I can look up some information on what I am doing at work with that.
On Sat, Sep 15, 2012 at 4:58 PM, AJ <bike...@gmail.com> wrote:
I've got 5 custom services running right now.
So maybe it can handle two devices on port 80?
Then perhaps it is just a zoneminder configuration problem yet.
ok, back to the drawing board.� lol� :)
<>On 09/15/2012 04:55 PM, Chris C wrote:
not really...unless theres an option to add multiple 'custom services'
On Sat, Sep 15, 2012 at 4:54 PM, AJ <bike...@gmail.com> wrote:
yea I've been changing those numbers around.� but i had it where 81 was external and 80 was internal.� but it still didn't work.� but does this screen tell you anything about whether or not my router is capable of having 2 servers on port 80?
<>On 09/15/2012 04:51 PM, Chris C wrote:
that screen shot is putting port 81 -> port 81... looks like you have to uncheck the box 'use the same port....' and then change that port to 80
On Sat, Sep 15, 2012 at 4:46 PM, AJ <bike...@gmail.com> wrote:
I thought I was trying to do that by setting the internal port to 80 and external port to 81 on this screen for my router. (see attached photo).
Is that what you mean?�
<>On 09/15/2012 04:31 PM, Chris C wrote:
from what i know, you can usually set up something like this
external_IP:81 -> router (maps port 81 to a specific server, say 1.2.3.6:80) -> 1.2.3.6:80
something like that...so you can have multiple servers running apache on port 80 (on the internal network), and then have them all be accessable via the external network by different IP's
if your looking for a new router that can do this, try to find one that works w/ DDWRT or OpenWRT, or the like (theres several).....orrrr you could try pfSense (which is a firewall that can also act as a router, but you need a computer to run it on)
On Sat, Sep 15, 2012 at 4:27 PM, AJ <bike...@gmail.com> wrote:
ok.� makes sense.
So if I can see it ok internally on port 80, is there a way to have two servers running on port 80? and have them accessible from the outside?� maybe with a better router?�
I guess I just don't have the know how yet to successfully change it to work on port 81 internally even.�
<>On 09/15/2012 04:11 PM, Tom wrote:
Your router may not be smart enough to cope with multiple servers in the DMZ. Many consumer grade ones are not.
But you have to be able to view the web page on port 81 internally before worrying about your router.
At 04:07 PM 9/15/2012, you wrote:
ok, my router has my other server (on port 80) as the default DMZ server.
But there's only space to put one IP address in for the "default DMZ server".
<>
On 09/15/2012 03:58 PM, Paul Schmidt wrote:
You may need to make the Zoneminder PC accessible from the outside. On my U-verse router, it is called the DMZ zone. You then would access it using the IP address assigned to you by your internet provider.
On 09/15/2012 03:53 PM, AJ wrote:
No, I could never even pull up zoneminder using port 81 internally.
So I'm wondering if maybe those extra instructions that I pasted on the first email where something I needed to do.� I just had a hard interpreting exactly what it was I was supposed to do with those instructions.
So I guess it's not configured right.� Zoneminder only seems to want to work internally on port 80.� but I never could access it externally ever.
I don't know that I even have a firewall.
<>
805 . [Optimism] When you have seven percent unemployed, you have ninety-three percent working. --John F. Kennedy
NEW: a50m...@gmail.com � N9QQB (amateur radio)
"HEY YOU" (loud shouting) � Second Tops (Set Dancing) � FIND ME ON FACEBOOK
43� 7' 17.2" N by 88� 6' 28.9" W � Elevation 815' � Grid Square EN53wc