Motion - Support Question 2009x 10x 12x 225019

mjprox, deny access to cgi-bin?


I'm using motion and mjprox to serve the streams over port 80. It works well. I've password protected the directory, which is fine, except, they could still go to /cgi-bin/nph-mjprox etc and see the stream.

How can I limit access to the script only via the specified folder?

Paste in your error messages, config settings, terminal window output etc in this text field.


Motion version:
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu 9.04

-- WeirdBeard - 12 Oct 2009


You have to protect your cgi-bin directory , i.ex using .htaccess .

AuthType Basic
AuthName "Password Required"
AuthUserFile /usr/lib/cgi-bin/.htpass 
Require user

Note : you have to allow .htaccess in your cgi-bin directory , take a look to apache config and change AllowOverride to ALL :
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride All
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

-- AngelCarpintero - 15 Nov 2009
Topic revision: r2 - 15 Nov 2009, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.