You need do complete two steps on this Stack for using Domain Name to visit your site:
Domain Name Resolution indicates the way your domain names are resolved to their mapped IP address. The majority of resolutions from domain names to IP addresses are done through a procedure called DNS. After the resolution, the domain name can be used to access Internet in a much more convenient way.
You can use Alibaba Cloud DNS in sync with the Domain service. Alibaba Cloud DNS provides authoritative DNS servers and DNS management services.
- Login Cloud Console->DNS Settings->Add Record,set Domain Resolution:
- The type is A record,host is your sub domain,value is your Internet IP Address.Confirm it
Host use @ to exactly match the original domain name (for example, yourdomain.tld).
- After the Domain Name Resolution please waite for some time until it’s useful(This time is different for different provider of Domain,from 1 minute to 24h)
Note:Please clear the browser cache when Domain Name Resolution is useful but you browser seem is also feedback the old contents of your site
Modify the configuration file:/opt/seafile/conf/seahub_settings.py:
SITE_BASE = 'http://127.0.0.1' //127.0.0.1 to your domain name
FILE_SERVER_ROOT = 'http://127.0.0.1/seafhttp' //127.0.0.1 to your domain name