Admin Panel using URL

I have setup Strapi and was able to login via ServerIP/admin, however, I would like to use a URL I have setup instead.

I have included url: ‘https://domainname.com’, in the /config/server.js file, per documentation, however, I just get a 404 page after I try the link.

module.exports = ({ env }) => ({
host: env(‘HOST’, ‘MyServerIP’),
port: env.int(‘PORT’, 1337),
//url: ‘https://domain.com’,
});

I also, have the domain pointing to the public folder project-name/public.

Is there something I missing that I need to add?

System Information
  • Strapi Version: 4
  • Operating System: Apache/2.4.41 Ubuntu 20.04.3 LTS
  • Database: MySQL (MariaDB 10.6.5)
  • Node Version: 16.13.2
  • NPM Version: 8.1.2