Access URL issue : QNAP Web server

Hello!

I recently deployed a new healthcare VR therapy management system.To access our therapeutic content portal, I currently have to specify the complete URL path. Like this: removed

If I just type “removed” I get redirected to the server administration interface instead: removed

I’ve properly configured the SSL certificates, so when I use the full address with port, the VR therapy platform loads perfectly.

I want the streamlined approach… How can I make this more user-friendly for our medical staff?

Thanks in advance for any help <3

Where exactly does a QNAP NAS come into play ? Are you exposing your QNAP NAS to WAN?.. NEVER ever ever ever do that.

If you have to host some sort of website, get a cheap webspace somewhere at least you have no chance that way of getting your NAS and patient data encrypted for ransom or leaked to hackers.

I have also removed the URLs you posted, as a quick check on shodan revealed several services running on that domain

1 Like

Hi @sd26120 ,

Here’s an AI-generated solution for your consideration, so you can evaluate if it would be helpful for your issue.

Automatic Redirect using index.php

You can place an index.php file in your QNAP’s web root directory (typically /Web/ or the directory you’ve configured for your virtual host). This file will automatically redirect users to your VR therapy system’s URL (e.g., https://XXXXX.com:1234).

<?php header("Location: https://XXXXX.com:1234"); exit(); ?>

This way, whenever someone accesses https://XXXXX.com, they will be immediately redirected to your specified VR system portal.

Setup Process (for Apache/Nginx on QNAP):

  1. Open “Control Panel” > “Applications” > “Web Server”.
  2. Enable Web Server.
  3. Specify the website folder (e.g., /Web/).
  4. Ensure the default page file is set to index.php (this is usually the default).
  5. Place the index.php file mentioned above into the /Web/ directory or the root directory of your virtual host.

Pro Tip:
If you want to avoid the redirect interfering with your NAS administration interface, you can move the admin interface to a subdomain like nas.XXXXX.com (implemented using virtual hosts or a reverse proxy).
For more “advanced redirection,” you could use meta refresh, JavaScript, or even Nginx Rewrite Rules. However, using index.php is generally the simplest and most stable method.

Finally, please be sure to consider the potential risks associated with exposing your NAS directly to the external network.