Server / Deploying a server for HTTPS |
You must configure Apache to support HTTP basic authentication by adding the required modules.
Please refer to the Apache Web server documentation for more information.
For the Apache 1.3 manual, go to http://httpd.apache.org/docs/1.3.
For the Apache 2.0 manual, go to http://httpd.apache.org/docs/2.0/.
Once the Apache Web server supports HTTP basic authentication, you must:
$ htpasswd -c myusers mylogin mypassword
The following example (based on Apache 2.0) defines the HTTP authentication type (Basic), with a user file (user-basic) containing the login and password of those who are allowed to access the service.
<Location /cgi-bin/fglccgi.exe/ws/r/MyWebService> AllowOverride None Order allow,deny Allow from all # # Basic HTTP authenticate configuration # AuthName "Top secret" AuthType Basic AuthUserFile "D:/Apache-Server/conf/authenticate/myusers" Require valid-user # Means any user in the password file </Location>
For more information about Apache Web server directives, refer to the Apache Web Server manual.