Answer the question
In order to leave comments, you need to log in
How to host a new site and link it to a VPS server that is already linked to another site?
Please help with hosting a new site and linking it to VPS!
1 There is a VPS server at FastVPS.ru . Another site is already bound to this server
2 Nginx is installed on it (version nginx/1.10.1 )
3 domain for the new site is purchased at 101domain.ru
4 fastVPS NS servers ( dns.fastdns24.com, dns2.fastdns24.org, dns3. fastdns24.eu, dns4.fastdns24.link ) on 101domain.ru for the new domain
5 access via PuTTY is available (login and password for root and one more user)
6 FastVPS technical support does not recommend installing ISPmanager. According to them, all data on the server will be overwritten after installing ISPmanager. It turns out that installing ISPmanager is not an option (ISPmanager was not installed before)
It was not me who was involved in the initial configuration of the server and uploading files (html, js, css).
Please tell me where to upload files in my case and how to link the site to VPS!
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
If I understand you correctly, then create a new config for nginx. Specify the root parameter in it, and throw the files into the folder specified in it.
The simplest view config:
server{
server_name ваш_домен;
root /путь/где/всё/будет/лежать;
index index.html;
location / {
try_files $uri /index.html;
}
}
Nurlan and Alexey! Thanks for answers! Did I understand correctly:
1 I create a new config file, for example, newsite.conf in /etc/nginx/
2 I throw files, for example, in /var/www/newsite
And questions:
1 If the domain has a Cyrillic name, then write in the config :
133.133.133.133 newsite.rf or
133.133.133.133 "newsite.rf"
2 After creating the config file and uploading the files, do I need to restart nginx?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question