Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
ErrorDocument 404 http://newdomain.com/
 

*HTPASSWD :*

{noformat}
apt-get install -y apache2-utils
htpasswd -c /etc/apache2/.htpasswd $USER
a2enmod authnz_ldap
service apache2 restart
{noformat}

...

{noformat}
<Directory /var/www/html/>
Options Indexes FollowSymLinks Includes ExecCGI
#GENERAL CONF
AllowOverride AuthConfig
AuthType Basic
AuthBasicProvider file ldap
Require valid-user
AuthName "Web Site Authentication: Login"

#LDAP CONF
AuthLDAPURL "ldap://192.168.1.222:389/ou=APACHEGROUP,dc=freesoftwareservers,dc=com?uid"
AuthLDAPBindDN "cn=admin,dc=freesoftwareservers,dc=com"
AuthLDAPBindPassword Repo7berrY

#HTPASSWD AUTH
AuthUserFile /etc/apache2/.htpasswd
</Directory>
{noformat}