How to create a subdomain pointing to a Nextcloud link 'Upload Box'?

Hi,

What would be the most elegant way to create an subdomain pointing to an ‘upload box’ (Nextcloud share that allow users to blindly upload files to a Nextcloud folder) ?

Like upload.ecowez.be pointing to Nextcloud

Thanks for your ideas :blush:

Matthieu

I don’t know about “elegant,” but a fairly simple way to handle it would seem to be a redirect page at that subdomain. So create a virtual host of upload.ecowez.be, and have its index.html be:

<!DOCTYPE HTML>

<meta charset="UTF-8">
<meta http-equiv="refresh" content="1; url=https://drive.ecowez.be/index.php/s/2bP3apPYZJiCSFr">

<script>
  window.location.href = "https://drive.ecowez.be/index.php/s/2bP3apPYZJiCSFr"
</script>

<title>Page Redirection</title>

<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href='https://drive.ecowez.be/index.php/s/2bP3apPYZJiCSFr'>link</a>.
1 Like