Hi wrumph
it seems that you can't require authentication on the video stream (but only with the control channel)
But you can bypass this at least for the remote access :whistle
You must set the proxy feature on the web server.
So, first do not forward the port 8090 with your ISP router (like this only from your LAN you have a direct access without authentication).
Create a file proxy.conf in the folder /etc with this content:
- Code: Select all
LoadModule proxy_module /usr/modules/mod_proxy.so
LoadModule proxy_http_module /usr/modules/mod_proxy_http.so
<Location /mywebcam >
ProxyPass http://localhost:8090
</Location>
Now the conf files used by the apache server is also in the folder \etc. So you must edit all files httpd.x (0,1,2...)but also httpd.conf to remove '#' at the last line of the these files
- Code: Select all
#Include /etc/proxy.conf
Restart fully the server
- Code: Select all
killall httpd
/usr/bin/httpd -f httpd.conf -d /etc
Now, if you have forwarded the port 80 (or 443 for https protocol), the url to get the video stream will be
http://yourPublicIP/mywebcam. You can replace yourPublicIP by your DDNS. (your public IP is the WAN IP provided by your ISP).
If you are not yet authenticated, the browser will ask you to login. The login is the usual login for the web interface : admin-nas. If you have also authorized some user accounts to use the console, their login can be used.
So it's not an easy way :mrgreen: