How do I setup Apache Web Access and protect a website?
Where can I download Mod-Auth-Vas?
Download and install mod_auth_vas plugin from https://github.com/OneIdentity/mod_auth_vas
run # sh ./setup-mod_auth_vas
To protect a website you will need to setup your htaccess file:
When complete, the web server's public directory structure will look like this:
DocumentRoot/
protected/
.htaccess
hello.html
You will need to find out where your web server's DocumentRoot directory is. This can be determined by looking for the DocumentRoot directive in the httpd.conf configuration file.
Create the protected directory
# cd DocumentRoot
# mkdir protected
# cd protected
Create a text file called .htaccess inside the protected directory, and enter the following lines:
<Files "*">
AuthType VAS
Require valid-user
</Files>
The valid-user directive refers to any user with an Active Directory account.
Create the hello.html file in the directory, and place in it a simple greeting:
Hello, world!
There will be no need to restart the web server after making these changes. The web server will need to be able to access the protected/ directory and the hello.html file. Use the chmod and/or chown commands to make sure it can.
At this point, you should have a running web server on a Quest Authentication Services-enabled host with access to the /protected resource requiring authentication.
For more information, please see the following webpage:
https://github.com/OneIdentity/mod_auth_vas/wiki/mod_auth_vas4-How-To
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center