IMG 1010 - Setting Up An MRTG Web Host

 

 

Procedure:

Create .htaccess file

  • Login as root

  • Go to directory:
    /opt/dialogic/common/mrtg_logs

  • Create a file called “.htaccess”

  • Add the following lines to the file:

    AuthName "Please enter your UserName and Password." AuthType Basic AuthUserFile /opt/dialogic/common/mrtg_logs/.htpasswd AuthGroupFile /dev/null Require user excelsw (Where excelsw is the username)
  • Save the file

  • Change the privileges on .htaccess

    chmod 777 .htaccess

 

Create a password for the UserName

  • Login as root

  • Go to directory /opt/dialogic/common/mrtg_logs

  • Type the following where excelsw is the username from procedure 1

    htpasswd –c /opt/dialogic/common/mrtg_logs/.htpasswd excelsw

 

Edit the httpd.conf file

  • Login as root

  • Go to directory /etc/httpd/conf

  • Change the DocumentRoot as shownbelow:

  • Setup for password protection:

    • Find the section that begins with the line “This should be changed to whatever you set DocumentRoot to.”

    • Change the areas shown below (notice the comment (#) added to the last two lines):

  • Change the DirectoryIndex as follows:

  • Save the httpd.conf file
     

Restart the Apache Web Server

  • Restart the Apache Server by typing the following:

 

Return to Documentation Home I Return to Sangoma Support