Set up login by the EspoCRM server name + domain + port

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dmitry123
    Junior Member
    • Mar 2025
    • 8

    #1

    Set up login by the EspoCRM server name + domain + port

    Hi. I have EspoCRM installed on a local network on a server with Ubuntu Desktop.
    Now I can log in to EspoCRM via the web interface from any computer on the same local network by entering the IP address of the EspoCRM server. How can I set up login by the EspoCRM server name + domain + port?

    Example:
    Now I can log in via IP: 192.168.XXX.XXX, but instead of IP I need to log in via the server name with domain and port: espocrm.mylocaldomain.local:80
    - I tried renaming the server name via the terminal (hostnamectl set-hostname).
    - I tried entering the server in the domain in Active Directory (and actually entered it, but it didn't help).
    - I tried to register the following in etc/hosts: 192.168.XXX.XXX espocrm.mylocaldomain.local , but it didn't help either.
    - I tried in EspoCRM itself via "Administration" > "Settings" > "System" to rename http://192.168.XXX.XXX to http://espocrm.mylocaldomain.local.

    Nothing helped. What am I doing wrong? Or am I not doing something right?
    If possible, please provide a solution with step-by-step actions/terminal commands. I really want a solution to my problem, if anyone has already done this. I'm just not good at Ubuntu
    Last edited by Dmitry123; Yesterday, 01:27 PM.
  • victor
    Active Community Member
    • Aug 2022
    • 911

    #2
    You need to add 192.168.XXX.XXX espocrm.mylocaldomain.local to hosts.

    - For example, you have a virtual machine installed on the Windows operating system and the IP of your server is 192.168.1.10.
    - Open the hosts file as administrator, located in C:\Windows\System32\drivers\etc\hosts, and add:
    HTML Code:
            192.168.1.10     espocrm.mylocaldomain.local      # EspoCRM test server
    - In Administration > Settings > Site URL, specify http://espocrm.mylocaldomain.local.

    - I tried to register the following in etc/hosts: 192.168.XXX.XXX espocrm.mylocaldomain.local , but it didn't help either.
    Maybe you accidentally added # symbol? It should be like in the screenshot:

    Maybe you accidentally added #?
    Click image for larger version

Name:	image.png
Views:	0
Size:	41.8 KB
ID:	117944

    Comment

    • Dmitry123
      Junior Member
      • Mar 2025
      • 8

      #3
      Originally posted by victor
      You need to add 192.168.XXX.XXX espocrm.mylocaldomain.local to hosts.

      - For example, you have a virtual machine installed on the Windows operating system and the IP of your server is 192.168.1.10.
      - Open the hosts file as administrator, located in C:\Windows\System32\drivers\etc\hosts, and add:
      HTML Code:
       192.168.1.10 espocrm.mylocaldomain.local # EspoCRM test server
      - In Administration > Settings > Site URL, specify http://espocrm.mylocaldomain.local.


      Maybe you accidentally added # symbol? It should be like in the screenshot:

      Maybe you accidentally added #?
      Click image for larger version  Name:	image.png Views:	0 Size:	41.8 KB ID:	117944
      No, (In Administration > Settings > Site URL) + (etc\hosts​) didn't help
      Something has not yet been done
      Click image for larger version

Name:	image.png
Views:	0
Size:	38.2 KB
ID:	117979
      Click image for larger version

Name:	image.png
Views:	0
Size:	43.4 KB
ID:	117980

      Comment

      • victor
        Active Community Member
        • Aug 2022
        • 911

        #4
        Rebooting the server does not affect Administration > Settings > Site URL​, if you save the changes.

        Click image for larger version

Name:	image.png
Views:	0
Size:	26.2 KB
ID:	117982

        Comment

        • Dmitry123
          Junior Member
          • Mar 2025
          • 8

          #5
          Originally posted by victor
          Rebooting the server does not affect Administration > Settings > Site URL, if you save the changes.

          Click image for larger version

Name:	image.png
Views:	0
Size:	26.2 KB
ID:	117982
          No, this is what I have already tried before. I change the value from IP to domain name > Save changes. I refresh the browser page to check if it reset to IP or not. As a result, it did not reset to IP (which is exactly what I needed). And after that, if I reboot the server, then after the reboot I see IP again instead of domain name. I have already checked this several times. And of course I save the changes.

          But even if I don't reboot the server after changing the URL from IP to domain name and save the changes, I still can't access the domain name through the web interface. It only continues to access the IP despite the fact that I made changes in hosts, and in administration > settings > system > URL

          Comment

          • Dmitry123
            Junior Member
            • Mar 2025
            • 8

            #6
            Since I installed EspoCRM via Script, I just now tried the article for those who installed via script (article from docs.espocrm.com), but after completing all the steps - the result is still the same (enters via IP, but now the URL remains a domain name even after reboot, thanks to those steps from the article, because I actually saw the IP there and changed it to the domain name).
            But what other steps should I take...?

            Click image for larger version  Name:	image.png Views:	0 Size:	51.7 KB ID:	117986
            Last edited by Dmitry123; Today, 12:56 PM.

            Comment

            Working...