K
K
KeyDel2014-11-06 22:26:04
DigitalOcean
KeyDel, 2014-11-06 22:26:04

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

3 answer(s)
T
throughtheether, 2014-11-07
@throughtheether

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 file11.22.33.44 yourdomain.com ,
where 11.22.33.44 is the IPv4 address of your server, yourdomain.com is the domain name you added.

D
Dmitry, 2014-11-06
@ExileeD

no, you can't DigitalOcean does not issue temporary names

A
Alexander Florinsky, 2014-12-16
@flor_master

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>

3 - restart apache
sudo service apache2 restart
everything. from the local computer, a site that is powered by DigitalOcean will be available

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question