Why when you request a local address I get on nextcloud?

0 like 0 dislike
Hello. At cloud.domain.com through proposely port get on nextcloud.
In the config of a virtual host he listens to this domain.
Why now when I get! on I get the same nextcloud ? Who faced?

Access via an untrusted domain
Please contact your administrator. If you are the administrator of this server, edit the parameter "trusted_domains" in the file "config/config.php". Example settings can be found in the file "config/config.sample.php".

Depending on the configuration, this button may be trusted the following domain:

Add "" as a trusted domain
by | 4 views

1 Answer

0 like 0 dislike
Default host registered? If you receive a request for the IP address or domain name that nginx is not registered, he or falls into default either (not sure here) the first of the virtual domains.
Do a simple:
server {
listen 80 default_server;
return 444;

And your cloud.domain.com list separately.

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
28,662 users