Clean URL Suggestions

What is the name of the domain?

fmaier.net

What is the issue you’re encountering

Im trying to get a clean URL

What steps have you taken to resolve the issue?

So my situation is the following. I recently bought the domain fmaier.net. i have a public ip which i got from my provider which is assigned to my fritzbox. Now im trying to make a clean URL for my Nextcloud. So f.e. I have a Hypervisor (Proxmox) installed where multiple VM’s are running. So theres Nextcloud, Mailcow, etc. I am now trying to make so that i can type “nextcloud.fmaier.net” and i automatically get to my nextcloud. The Problem right now is 1. that the Nextcloud port is not the standard one so i always have to type nextcloud.fmaier.net:‘port’ which i think is kinda not nice and so i want to change that. anyone have a good recommendation how i can make this clean

Well yes, but actually, no.

Cloudflare has multiple solutions for this situation. You can specify the port with an Origin rule when you proxy traffic, or you can use a tunnel and specify the port with that.

However, you should be aware that using the proxy for a Nextcloud is actually against (kinda) Cloudflare’s terms of service, and you will likely run into problems with your traffic getting throttled or outright blocked if there is too much.

with the tunnel, does the proxy need to be turned on aswell? and where can i make that?

Yes, traffic via the tunnel is always prxied.

You can probably still use the proxy if you only want to backup some documents or photos. It really only starts to become problematic if you have a lot of traffic.

Anyway, why don’t you just change the Nextcloud port to 443? That would make life a lot easuer for you.

because i have more services running for example i want to make a website with port 443. Then there should be buttons which redirect you to the spicific service. F.e. nextcloud

It is very common to have multiple services running on the same port. For Nextcloud, you should probably have a reverse proxy like Apache or Nginx anyway.

1 Like

what dou mean? how can i run multiple services on the same port with the same public ip?

and the problem with that is that the revers proxy needs to have the public ip no? because my fritzbox has it

You have one service running on port 443, for example Nginx. Nginx then takes all requests, terminates SSL and either serves the requests directly or forwards them to other services you are running locally.

I’m not sure what you mean by that. You either configure port forwarding on your FritzBox or use a tunnel to bypass that.

1 Like

yes i currently use port forwarding on the fritzbox. So if i understand it correctly i would setup one port forwarding to the nginx server and then this server would do all the trafficking to other services right?

Yes, that is correct.

so what if i want to run a mailcow server which needs to be accessibble with port 443 over the internet. Could nginx do that aswell?

and do you have any good documents, videos or info’s on how to setup nginx and understand and configure it.

I assume that is a website where you can read/write emails? That should be no problem.

There are tons of resources on how to configure Nginx out there. Maybe start by putting a simple hello_world.html file up and make it available via https, and then you can go from there and add the proxy configuration and listeners for your other services.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.