Hi,
I think I did everything needed as described here: https://www.asustor.com/en/knowledge/de ... oup_id=111
But obviously something is wrong. I'm using the NAS AS5402T. Software is up-to-date.
I want to host my own website and created a dummy one and placed it in the Web-directory on my NAS.
If I go to a browser and insert into my browser: http:\\AS5402T-51C9\Web\Testversion Website Lutz\Lutz Junk V1.htm
I get an error Object not found. Error 404.
If I insert file:\\AS5402T-51C9\Web\Testversion Website Lutz\Lutz Junk V1.htm I can see my dummy website and it works (at least on my PC which is on the same network as the NAS. However, I want to achieve a "normal" Weblink. Has anybody an idea where I go wrong?
Many thanks in advance. AsusLutz
Web Hosting on my NAS
-
- Posts: 4
- youtube meble na wymiar Warszawa
- Joined: Sun May 25, 2025 10:00 pm
-
- Posts: 4
- Joined: Sun May 25, 2025 10:00 pm
Re: Web Hosting on my NAS
PS.: If somebody will answer please don't use too much web-jargon as I'm pretty new to websites and NAS 

-
- Posts: 583
- Joined: Sat Mar 16, 2013 6:58 am
- Location: Wiltshire, England
Re: Web Hosting on my NAS
Your problem may be just that you're using \ instead of /.
If that's not the case, as an aid to fault-finding, can you copy the contents of Testversion Website Lutz to the root of web and rename Lutz Junk V1.htm to index.htm?
You should then be able to just put http://AS5402T-51C9 into your browser.
If you are going to make this web site publicly available then you need to get a certificate so your viewers can use https instead of http. Many browsers now make it difficult to view http sites. You also need to consider how you will make it available and whether your firewall will keep out hackers. You also need to check whether your ISP allows self-hosted web sites and if the traffic will be within your allowance.
If that's not the case, as an aid to fault-finding, can you copy the contents of Testversion Website Lutz to the root of web and rename Lutz Junk V1.htm to index.htm?
You should then be able to just put http://AS5402T-51C9 into your browser.
If you are going to make this web site publicly available then you need to get a certificate so your viewers can use https instead of http. Many browsers now make it difficult to view http sites. You also need to consider how you will make it available and whether your firewall will keep out hackers. You also need to check whether your ISP allows self-hosted web sites and if the traffic will be within your allowance.
-
- Posts: 4
- Joined: Sun May 25, 2025 10:00 pm
Re: Web Hosting on my NAS
Thanks snapshot. The use of / or \ did not help, but copying to the root of Web helped. I could now see my testversion and the wee buttons worked. Great!. First success. Where do I get a certificate from to make it an https? I will explore answers to your other remarks/questions in due course, but one question came immediately up. What if I need to host a second website? The root directory in Web is then used by say my first website, where do I put a second one? But thanks again, your response has helped me further. Have a good upcoming week. AsusLutz
-
- Posts: 583
- Joined: Sat Mar 16, 2013 6:58 am
- Location: Wiltshire, England
Re: Web Hosting on my NAS
Good, you've proved that your Web Center setup is correct. Note that web was not used in the URL and I think that may have been you initial problem. When you go to the NAS without :8000 (or whatever you've changed it to) after it, it automatically looks in the web folder. That was why there was a difference between http:// and file://. Also, index.htm is the default that it will look for if there are more than one .htm files.
This leads us to how you can easily set up what appear to be multiple web sites. My web site is a tree structure with two major sections with several sub-sections, each containing various folders of photos. I have many .htm files in the root web folder which take the viewer to the required point in the tree. So all you need to do is create a .htm file with a meaningful name, pointing to the appropriate folder. Here's a sample to get you started; the file is called Lincoln.html and goes down through the tree to the Lincoln & Norwich folder.
Have a look at https://letsencrypt.org/ to learn about certificates and get your own.
This leads us to how you can easily set up what appear to be multiple web sites. My web site is a tree structure with two major sections with several sub-sections, each containing various folders of photos. I have many .htm files in the root web folder which take the viewer to the required point in the tree. So all you need to do is create a .htm file with a meaningful name, pointing to the appropriate folder. Here's a sample to get you started; the file is called Lincoln.html and goes down through the tree to the Lincoln & Norwich folder.
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
</html>
<script language="javascript">
window.location='photo_albums/Holidays/Lincoln %26 Norwich/index.html';
</script>
-
- Posts: 4
- Joined: Sun May 25, 2025 10:00 pm
Re: Web Hosting on my NAS
Thanks Snapshot. I understand now how to manage 2 websites, this is just by naming the index.html files differently. But I'm still stuck with 'file' or 'https' in the address. For example: file://as5402t-51c9/Web/Testversion%20Lutz.html opens my dummy website but the same with https instead of file gives me this error: object not found, error 404.
I got also a certificate from Asustor but don't know yet what to do with it. It came as a ZIP.file. I did not have the time yet to digest this from the link you gave me: https://letsencrypt.org/ but I'll, however I'll be away for several days and do this at my return. Thanks again.
I
I got also a certificate from Asustor but don't know yet what to do with it. It came as a ZIP.file. I did not have the time yet to digest this from the link you gave me: https://letsencrypt.org/ but I'll, however I'll be away for several days and do this at my return. Thanks again.
I
-
- Posts: 583
- Joined: Sat Mar 16, 2013 6:58 am
- Location: Wiltshire, England
Re: Web Hosting on my NAS
Yes, that https entry will not work until you leave out the web/ as I said in my first paragraph.