[geeks] Re: Apache

Bertrand HUTIN bhutin at yahoo.fr
Fri Apr 12 05:42:37 CDT 2002


you need to add in httpd.conf :
example: add a password for /swstorage-cgi/StartSwStorage.cgi
<Location /swstorage-cgi/StartSwStorage.cgi>
AuthUserFile    /usr/local/apache/etc/swstf.pwd
AuthName        StorageMGR
AuthType        Basic
require         valid-user
</Location>
 
the passwd file (usr/local/apache/etc/swstf.pwd) is built with:
# /usr/local/apache/bin/htpasswd -c /usr/local/apache/etc/swstf.pwd
user

redirecting:
redirect to nojava.html
<meta http-equiv="refresh" content="0; URL=nojava.html"> 
other ways use Java:
<script language="JavaScript">
                   <!-- redirects to a page for JavaScript 1.0
                     window.location.href = "js0.html"
                   //-->
                   </script>



More information about the geeks mailing list