Answer the question
In order to leave comments, you need to log in
Is it possible to create 2 different sites on domains: site.ru and www.site.ru?
There is a domain: site.ru and subdomain www.site.ru. Is it possible to host 2 different sites on them? How to do it? Thanks for answers.
Answer the question
In order to leave comments, you need to log in
It is possible but not necessary, PS now such sites are automatically glued together and may not understand you +)
Can.
Example for nginx:
server {
listen 80;
server_name site.ru;
root /var/www/site.ru;
}
server {
listen 80;
server_name www.site.ru;
root /var/www/www.site.ru;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question