The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I make a pop basic autorization popup

Discussion in 'General Discussion' started by ninetails, Apr 20, 2006.

  1. ninetails

    ninetails Registered

    Joined:
    Apr 20, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I want to use a this. How would I set it up?

    nine
     
  2. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    If I understand what your asking

    You will need to create/modify the .htaccess file in the directory you want to force login to

    Here is a sample to go by, modify to your needs

    AuthType Basic
    AuthName Mysql
    AuthUserFile /home/username/public_html/dir/.htpasswd
    AuthGroupFile /dev/null
    <Limit GET>
    require valid-user
    </Limit>

    And then you would need to run this command

    /usr/local/apache/bin/htpasswd -c -m -b /home/username/public_html/dir/.htpasswd username password
     
Loading...

Share This Page