Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'EvoCam - A powerful and easy to use webcam app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
EvoCam - A powerful and easy to use webcam app
Authored by: Anonymous on Apr 29, '03 03:45:09AM

If you have EvoCam running on an other machine than your webserver,
do the following to forward the requests for the request from your
webserver to your webcam machine:

(as send to me by the excellent Evological helpdesk people)

1) Remove the preceding # character from the line that says:

#LoadModule proxy_module libexec/httpd/libproxy.so

2) Remove the preceding # character from the line that says:

#AddModule mod_proxy.c

3) Add the following lines before the end of the file, replacing
1.2.3.4:8080 with the IP address and port of the EvoCam server:

#
# EvoCam proxy
# The following will cause all EvoCam-related requests to be redirected
# to another host running EvoCam.
#
<IfModule mod_proxy.c>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/(webcam\.html) http://1.2.3.4:8080/$1 [P]
RewriteRule ^/(webcam\.jpg) http://1.2.3.4:8080/$1 [P]
RewriteRule ^/(evocam\.jar) http://1.2.3.4:8080/$1 [P]
RewriteRule ^/(evocam\.jpg) http://1.2.3.4:8080/$1 [P]
RewriteRule ^/([0123456789]*/.*) http://1.2.3.4:8080/$1 [P]
</IfModule>
</IfModule>

4) If Personal Web Sharing is running, turn it off in System Preferences.

5) Turn on Personal Web Sharing in System Preferences.

6) To test if the redirect is working, go to 'http://apacheip/webcam.html'
in a web browser, substituting your Apache server's IP address for
'apacheip', and you should see EvoCam's webcam.html instead.



[ Reply to This | # ]