htaccess htpasswd issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gribs
    Senior Member
    • May 2015
    • 104

    htaccess htpasswd issue

    Hi

    I can't put a htaccess with htpasswd for the espocrm directory
    if i do this, I have an error 500

    (I added just lines needed in espocrm htaccess, i didnt delete the espocrm htaccess)

    have you an idea to fix this please?
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    Please check if your htpasswd syntax in the .htaccess is correct.
    Job Offers and Requests

    Comment

    • gribs
      Senior Member
      • May 2015
      • 104

      #3
      Hi,

      The syntax of .htaccess is

      "AuthName "Protected"
      AuthType Basic
      AuthUserFile "/public_html/site/passwd/.htpasswd"
      Require valid-user"

      And in the .htpasswd is

      usernameasswordsha1crypted

      so I don't know what is wrong

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        Are you sure that your hosting provides support htpasswd. E.g. in cPanel you can do it via "Password Protect Directories" menu.
        Job Offers and Requests

        Comment

        • gribs
          Senior Member
          • May 2015
          • 104

          #5
          Hi
          Yes, it works with another script on the same vps server

          Comment

          • mmcdonald
            Junior Member
            • Jun 2016
            • 8

            #6
            Has this been fixed? .. Having same issue.... only happen with ESPO

            Comment

            • tarasm
              Super Moderator
              • Mar 2014
              • 573

              #7
              Espo doesn't support Basic Authorization with .htpasswd. Why? Because, EspoCRM designed as a single page application with RESTful API. So EspoCRM already uses Basic Authorization for internal authorization in the system.
              Job Offers and Requests

              Comment

              • dev77
                Senior Member
                • Feb 2018
                • 132

                #8
                I tried to add a .htpasswd to my Espocrm directory and I get the 500 Internal Server Error. The above post is five years old. Is it still accurate? We can't use .htpasswd to add some extra security?

                Comment

                • shalmaxb
                  Senior Member
                  • Mar 2015
                  • 1620

                  #9
                  Have a look here: https://docs.espocrm.com/administrat...configuration/

                  Comment

                  Working...