K
K
kachi882019-08-01 17:43:02
ubuntu
kachi88, 2019-08-01 17:43:02

How to bind a domain to ubuntuserver without creating a folder with the domain name in the "html" folder?

The bottom line is, there is a vps on ubuntoserver 16.04, this is a file server where files for download are located at the root, for example:
http://ip-server-address/file.exe (on the server itself, this is a folder: /var/www/html/) . After all, in order to bind a domain, I must create a folder /var/www/html/ site.com
How can I bind a domain without changing the address of the files? Is it possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2019-08-01
@GavriKos

Yes, it is possible by putting a web server like apache.

I
Igor Ustyugov, 2019-08-01
@karp

Specify your ip in the A record in the dns of the domain.
If there is only one site, then most likely you won’t even need to edit the config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question