Using motion: Difference between revisions
(Created page with "== Setting up an Apache Reverse Proxy to your motion webcam == <VirtualHost *:80> # ... all the normal stuff # ADD THESE TWO LINES... make sure the port numbers m...") |
No edit summary |
||
Line 1: | Line 1: | ||
== Setting up an Apache Reverse Proxy to your motion webcam == | == Setting up an Apache Reverse Proxy to your motion webcam == | ||
Installing apache on a pi: | |||
apt-get install apache2 | |||
<VirtualHost *:80> | <VirtualHost *:80> | ||
# ... all the normal stuff | # ... all the normal stuff | ||
# ADD THESE TWO LINES... make sure the port numbers match motion's settings | # ADD THESE TWO LINES... make sure the port numbers match motion's settings | ||
ProxyPass /w http://localhost:8000 | ProxyPass /w http://localhost:8000 | ||
ProxyPass /c http://localhost:8080 | ProxyPass /c http://localhost:8080 | ||
</VirtualHost> | |||
To enable reverse proxies in Apache | |||
a2enmod proxy proxy_http |
Revision as of 13:25, 25 November 2013
Setting up an Apache Reverse Proxy to your motion webcam
Installing apache on a pi:
apt-get install apache2
<VirtualHost *:80> # ... all the normal stuff # ADD THESE TWO LINES... make sure the port numbers match motion's settings ProxyPass /w http://localhost:8000 ProxyPass /c http://localhost:8080 </VirtualHost>
To enable reverse proxies in Apache
a2enmod proxy proxy_http