L
L
Leatington2021-09-29 15:30:49
Nginx
Leatington, 2021-09-29 15:30:49

WWW in subdomains?

When setting up the nginx configuration, server_name is usually specified domain.ru and www.domain.ru, and I think if I specify the same for the subdomain (sub.domain.ru and www.sub.domain.ru), www is not needed? because when you try to go like this in the browser, it does not open anything, it turns out that you only need to specify odig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2021-09-29
@martin74ua

I hope all used subdomains are specified in dns...

A
Alexander Falaleev, 2021-09-30
@suffix_ixbt

It is not necessary to specify different domains/subdomains in server_name in one nginx.conf. Just insert the line into the config:
include /etc/nginx/vhosts/*/*.conf;
And in vhosts you specify everything you need with separate configs in each of which only one domain/subdomain is specified in server_name.

D
Dmitry Surin, 2014-10-29
@BedwaRe

employer
task
bfa6a833594945aba1c54bcbcff7bbe5.JPG

SELECT name FROM employer, task
WHERE task.creator = employer.id
OR task.responser = employer.id

Conclusion:
But this is not a solution to the problem) You need to maintain one more field (primary key) - the id of the record in the task table. Otherwise, you will not be able to fully work with records in the context of a row (that is, select line by line). And there it will be easier to write joins ;-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question