Hi Jose;
I was wondering if you can explain where and how I can make the domains name, go to their respective websites.

I have two domain names and both DNS are pointing to my server. I have added the two website on the server and both domain are routed to the 403 page.

I have put one of the domain in the default website option and that work for one but not for the other.

Both domains are in port 80

I have download the DNS manager and add the NS server from my hosting companies and no luck can you explain in detail how this is done.

    aaPanel_Jose just saying that your recommendation about you need to set it to dns only in CloudFlare should be included in the documentation since most people is using it.
    I was unable to use the domain until I changed from Proxied to DNS only in Cloudflare.
    BTW, thanks for that tip!

    a month later

    We are having all sorts of confusion because of a lack of proper documentation and instructions. I am going to show the whole process step by step here.

    1. Create a DNS record (A type) for your desired domain. Something like 'server.example.com'.
    2. Make sure you set it to "DNS Only" if you are using Cloudflare.
    3. Go to your aaPanel's settings page and disable SSL first. It will reload your aaPanel.
    4. Now go to settings and set the domain as 'server.example.com'. Click save which will reload your panel.
    5. Now enable panel SSL and make sure you set 'Let's Encrypt' and follow the process. It will verify and enable SSL and you're done.
    6. Now you can access the panel using server.example.com:panel-port/security-entrance.

    I hope this helps.

    Thanks!

      18 days later

      aaPanel_Jose ubuntu@vps-8b76dbed:~$
      ubuntu@vps-8b76dbed:~$ rm -f /www/server/panel/data/domain.conf && bt reload
      rm: cannot remove '/www/server/panel/data/domain.conf': Permission denied
      ubuntu@vps-8b76dbed:~$

      same problem sir

        2 months later
        10 months later
        3 months later
        6 months later

        I am having the exactly same issue and neither of the sollutions worked out for me. Unable to access my aapanel trought panel.mydomain.com , neither with the explicit port nor in any other way but with the direct ip of my server.

        Edit: Thotght I found the sollution installing the SYS firewall and inserting 7800 port on the security tab, but even that worked out for me.

          aaP_lucaaamaral
          Hello, have you solved the problem?
          If not, check whether the domain name resolution points to the IP address of the server and the proxy is not enabled
          Check if the full link access panel is used

          24 days later

          aaP_usanuman this works for me i am using cloudflare what i did is below and 100% working.

          1. Create A record in cloudflare input server IP
          2. Generate Client certificate in cloudflare then copy (Key & Certificate (in pem format))
          3. Go to AAPANEL enable cloudflare supported PORT as written above.
          4. AAPANEL> setting enter domain or subdomain address
            5.Enable SSL select i have certificate and paste the cloudflare in step2 and save.

          Hope this will help others who bump into this kind of situation.

          10 days later

          I have the same problem. I did all of the above solutions but it doesn't work for me. Unable to set domain for accessing panel

            10 days later

            aaP_agilsetiawan772
            me too, actually I've been trying for couple years already πŸ˜„
            I tried everything with no luck.

            I wonder how important is to set the domain and SSL for the panel if I'm the only one using it,,, any thoughts?
            Thanks.

              aaPanel_Kern
              Wow!! that's a very detailed guide!
              I will try it out and get back.
              Thanks a lot for all your great work with this panel!

              aaPanel_Kern
              I tried with let's encrypt (created in a website), cloudflare, and also self certificate.
              In all of them I get this error

              Any clues?
              Thanks!

                Connect with us: πŸ“¨ Telegram πŸ’¬ Discord Email: support@aapanel.com