See which IPs access the nextcloud landing page

Hello! I’d like to see which IPs access <my_domain>/nextcloud. Is that possible? It is (obviously) accessible from the internet.

Also, if I put a .html file in the www folder, I can access it from the web, too (<my_domain>/htmlfile). Is there a way to see accesses of that page?

You can configure Lighttpd to log the IP’s which accessed the server:
I’m not sure if this is enabled by default, but I guess not, so just do this:
sudo lighttpd-enable-mod accesslog
This enables the logging. The default path of the log should be /var/log/lighttpd/access.log, otherwise you can define a path in your /etc/lighttpd/lighttpd.conf by adding this line:
accesslog.filename = “/var/log/lighttpd/access.log”

Thank Jappe, I think I figured it out.

Some additional info:
Interesting for you is just the first entry (IP address of remote host).

What the stuff after this is you can find here (and how to change what is logged, etc): https://redmine.lighttpd.net/projects/1/wiki/Docs_ModAccesslog