How to make NextCloud url as "<local_ip_address>/nextcloud" instead of subdomain like many are suggesting?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2): 19.0.0
Operating system and version (eg, Ubuntu 20.04): 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.1): 7.4

The issue you are facing:
I am able to successfully installed NextCloud Server and the setup is very easy (Thanks for the really awesome product).

Currently, i’m connecting through “http://nextcloud.localhost” but as you know when connecting from different system in the same network, you can’t use subdomain with IP Address e.g. nextcloud.192.168.100.4.

But when I change the URL to “http://localhost/nextcloud”, it’s not working. I changed the “nextcloud” to different words but to no avail. I’m currently changing the URL in nextcloud.conf, /etc/hosts file and adding in trusted domains.

How can I use NextCloud with aforementioned url?

Reason:
I turned my old PC into a server with Ubuntu Desktop and using it for many purposes. I made the system IP Address as static. Currently, I’m accessing different sites through similar URLs

1 Like

Who said that? I recommend to ask aunt G. for help more often :wink:

@endercoder
Welcome to Nextcloud!
I hope you find what you need!

@j-ed
who is aunt G.?

She is everywhere and always has an open ear for you :wink:

grafik

1 Like

oh ok, I don’t use google
I am working on my own search engine that cannot track you at all and I never put ads on it ever!

Like I said, I can use the subdomain. It is not possible to connect to it from another system in the same network because of using IP Address in it.
e.g. http://nextcloud.192.168.100.4 is not acceptable.

I think you’ve totally misunderstood how DNS and routing works. You cannot mix names and ip addresses in that way. If you use an ip address to access a server it is only possible to reach the default services running on a specific port on a server or differentiate different applications by using sub directories.

If you use dns names, you can run different services on the same server and handle it like different servers as it is describe here.

Ok. You mean simply like “http://nextcloud/” without subdomain or subdirectories? If so, How can I be able to access from another system in the same network without mentioning the IP Address?

I mean you need at least an internal domain name for your network, like e.g. “local.lan” and a server name, e.g. “nextcloud”, so that you would reach your server using a name like “nextcloud.local.lan”. “localhost” cannot be used because it is a reserved name which addresses the loopback device of a device/server.
To use names without a network you need a central DNS server which is doing the name resolution within your network. In most cases your internet router is doing that job, but it depends on the model if it can be used or not.

You find many guides on the internet which explain how DNS work:
https://stevessmarthomeguide.com/name-resolution-and-dns-on-home-networks/