Saturday, March 7

make cgi work on your apache

addit your httpd.conf.
put this

deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow



cd /path/to/your/cgi-bin/yourcgi
Now you will want to create a .htaccess file to password protect the yourcgi interface.

chown www .htaccess (you may need to change the chown to either "nobody", "apache" or "www" etc., depending on what user your installation of Apache is running as)

edit .htaccess
AuthType Basic
AuthUserFile /path/to/where/you/want/to/store/the/password/file/.htpasswd
AuthName username
require valid-user
satisfy any



chmod 644 .htaccess

restart apache

No comments:

Post a Comment