Answer the question
In order to leave comments, you need to log in
DigitalOcean: how to call non-default.domain sites before domain binding?
In the DigitalOcean panel and in the Vesta panel, I added a domain name, which is currently linked to another hosting. On ftp, there is a folder with a name that matches the domain name I added (public_html folder inside it).
Is there any way to access the site in the above folder from the web, before binding to the ns domain name of the digitalocean servers?
Addressing by ip: http://111.222.333.444/ leads to the default.domain page.
Before that, I dealt only with shared hosting, where, before binding a domain name, you can access the site through temporary names that the hoster sends. I would like to check the operation of the site without binding a domain name for the time being.
Answer the question
In order to leave comments, you need to log in
Maybe there is some other way to check the work on DO without binding a domain name?Try to set the display on your workstation in the hosts file
11.22.33.44 yourdomain.com
, throughtheether Rights
need to do 3 things.
1 - write in your host file the entry IP yourdomain.com
2 - Make something like this entry in the virtual hosts of the server
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /path/to/your/document/root
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /path/to/folder>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question