Custom Domain
1. Domain Config
Go to your DNS Registrar - E.G, Namecheap, Google Domains, Namecom, etc...
For this example, I will be using Cloudflare.
Locate your DNS Records
Add an "A Record" With the following information
Name | IPV4 Adress |
---|---|
Subdomain or @ to use the whole domain | your servers IPV4 Adress |
2. Apache Config
SSH into the server running your HTTP website as a user with sudo privileges.
You will need to be able to access your server's terminal for these following steps.
List the ufw application profiles by typing:
You will receive a list of the application profiles:
As indicated by the output, there are three profiles available for Apache:
Apache: This profile opens only port 80 (normal, unencrypted web traffic)
Apache Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
Apache Secure: This profile opens only port 443 (TLS/SSL encrypted traffic)
Enable the following Apache Modules
Restart Apache
Configuring our webserver
Once you run ls
you should see 000-default.conf and any other available configs
Copying the default configuration
Edit the default configuration to the below configuration
Press
CTRL + X
orCommand-X
for Mac, then pressEnter
to save changes.
Now run the following command.
3. Setting up our Discord application redirect
Go to Discord Dev and go to your application -> Oauth2 -> General.
Add 2 Redirects to your dashboard.
Change http and https depending on whether you have SSL or not!
Now, you should be able to access and log in to your bot's dashboard!
Last updated