Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice