T
T
Trianid Trianid2018-03-26 14:27:45
Nginx
Trianid Trianid, 2018-03-26 14:27:45

Why do I get to nextcloud when I request a local address?

Hello. At the address cloud.domain.com, I get to nextcloud through the forwarded port.
In the Wirth host config, it listens to this domain.
Why now when I go from LAN to 192.168.0.171/phpmyadmin I get to the same nextcloud ? Who faced?

Access through an untrusted domain
Contact your administrator. If you are the administrator of this server, edit the "trusted_domains" setting in the "config/config.php" file. An example configuration can be found in the "config/config.sample.php" file.
Depending on the configuration, this button can trust the following domain:
Add "192.168.0.171" as a trusted domain

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey78, 2018-03-28
@Sergey78

Default host registered? If a request comes to an IP address or a domain that is not registered with nginx, it gets either to default or (I'm not sure here) to the first of the virtual domains.
Do it simply:
server {
listen 80 default_server;
return 444;
}
And register your cloud.domain.com separately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question