Redirect IP Address To My Cloudron Subdomain
-
After migrated to new server, I just accessed the IP address and I found a message like this :
You cannot view Cloudron dashboard by IP address. Instead, navigate to the domain you configured during setup i.e https://my.domain.example . If you do not remember your domain, SSH into your server and run cloudron-support --owner-login .
Is it possible to redirect when someone want to access the IP Address of server and he will redirect to https://my.domain.example, instead of see the message above?
Thank you.
-
After migrated to new server, I just accessed the IP address and I found a message like this :
You cannot view Cloudron dashboard by IP address. Instead, navigate to the domain you configured during setup i.e https://my.domain.example . If you do not remember your domain, SSH into your server and run cloudron-support --owner-login .
Is it possible to redirect when someone want to access the IP Address of server and he will redirect to https://my.domain.example, instead of see the message above?
Thank you.
@IniBudi many (most?) don't want to leak their IP address. This is the reason that it doesn't automatically redirect to the domain.
Given that everything is vhost based, you should only ever access by domain name and never by IP. The page is simply there as a warning . nothing else.
-
-
-
Forgot to mention, if you really want to redirect, you can use https://docs.cloudron.io/branding/#custom-pages . Put a custom notfound.html that redirects to your domain, but I would not recommend this for aforementioned reason.
-
@joseph I try to create a new folder (/custom_pages) using SFTP but it show that permission is denied.
I just saw this folder path
/home/yellowtent/boxdata/
Should I create new folder for /custom_pages/ ?
-
@IniBudi yes, you have to create the folder as user
yellowtent
. Don't think you can use SFTP since it's not enabled in Cloudron level.