Page 1 of 1

cant view my camera out side of my network

Posted: Wed Dec 16, 2009 12:48 am
by jwflammer
i have a web site and i have put the link to my camera in a html div box but only my computer can view the camera not viewers to my web site how do i fix this i using ubuntu and i think apache

Apache and ZM on same server?

Posted: Wed Dec 16, 2009 1:24 pm
by Jason_Bassett
Hello

Is Zoneminder running on a different machine to that serving your website?

If so, then the following may help as I had a similar issue when trying to get a Zoneminder link working from a website.

My setup is as follows:

All web port 80 requests are forwarded from my firewall to my main webserver (192.168.1.90), from there, any request for zoneminder.mysite.com is forwarded using Apache's ProxyPass to my Zoneminder server (192.168.1.101).

The main webserver is setup to use VirtualHosts and the Zoneminder configuration lines are as follows:

#zoneminder.mysite.com
<VirtualHost>
ServerName zoneminder.mysite.com
ProxyRequests Off
ErrorLog /var/log/apache2/zoneminder_error_log
CustomLog /var/log/apache2/zneminder_access_log combined

<Proxy>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://192.168.1.101/
ProxyPreserveHost On
</VirtualHost>

The Zoneminder server, also running Apache with VirtualHosts has the following in its configuration file:

#ZoneMinder
<VirtualHost>
ServerName zoneminder.mysite.com

Include /etc/apache2/vhosts.d/default_vhost.include
ErrorLog /var/log/apache2/phpmyadmin_log

<Directory>
Options -Indexes FollowSymLinks +Includes
AllowOverride All
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all
</Directory>

<IfModule>
ServerEnvironment apache apache
</IfModule>
</VirtualHost>

To get this ProxyPass reverse proxy system working, I also had to add the following to the /etc/apache/httpd.conf, how I obtained these modules I cannot remember:

#Added to get reverse proxy working 15/04/2009
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so