Moving EspoCRM to HTTPS and SSL certificate

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • espo_newbie
    Junior Member
    • Jul 2023
    • 3

    Moving EspoCRM to HTTPS and SSL certificate

    We originally setup EspoCRM on http and without any certificates, using just the servers IP address to access the site i.e. "http://1.2.3.4/espocrm/#" - this works fine and continues to do so, however we now want to move this to https and install a new site name with the certificate.

    The certificate has been successfully installed and when going to the new site i.e. "https://new.address.co.uk/espocrm/#" shows that the certiicate is working and installed, but instead of seeing the regular Espo site and able to login we get 'Forbidden - you don't have permission to access this resource'.

    This is also the case when using https and just the IP address - exactly the same error. http://1.2.3.4/espocrm/# work perfectly with no issues.

    Has anyone got any advice as to where we are going wrong here please? The httpd-vhosts.conf is set up identically for port 80 and 443 but as mentioned previously is unable to be accessed.

    This is setup on a Windows server using WAMP and Apache 2.4.57.3 and PHP 8.2.7
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    #2
    Did you change the "siteURL" in config.php to https? You may find that line in the last part of the config.php

    Comment

    • espo_newbie
      Junior Member
      • Jul 2023
      • 3

      #3
      Originally posted by shalmaxb
      Did you change the "siteURL" in config.php to https? You may find that line in the last part of the config.php
      Thank you for your response.

      Is this within C:\wamp64\www\espocrm\data? If so then yes within the config.php file here 'siteUrl' is set to the same as is within the Administration > Settings area on the EspoCRM site (accessed via http).

      Is there a certain format this needs to be under, just out of interest? We access the site via http://1.2.3.4/espocrm/# and, the Site URL is set to https://mysitename.co.uk/espocrm in both the web interface and the config.php in the location mentioned above.
      Last edited by espo_newbie; 07-11-2023, 07:57 AM.

      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1602

        #4
        I think, you should put there only https://mysitename.co.uk, because a certificate is domain dependent and not for a subfolder. But I admit, so far I guess that.

        Comment


        • espo_newbie
          espo_newbie commented
          Editing a comment
          Thank you for your help and advice, this still wasn't happy so we rebuilt on Ubuntu and using the Docker scripts
      Working...