Since the MBL runs on Linx and has apache installed, to run the default UI, I would like to know if it can be used to as a web server to host my websites.
I have web prototypes (static content, html & images only) and would want to put it on my MBL so that I can open them up from any of my devices on the network (internal). Would it be possible to use the existing apache installation without messing up the MBL UI. Can we configure a new port like 8080 and have all my prototypes under it.
I’m not a Linux guy, appreciate if somone can help me with links or the commands to get this in place.
There are several things you can do. Here is a couple of ideas. I assume you can ssh to the MBL.
The easiest is to add your html code to “/var/www” The UI is mostly in “/var/www/UI” so you will not mess it up. You cannot have an index.hml page if you want the UI to be the default so something like mypage.html.
A little more trouble would be to use apache’s sites-available for Virtual Hosts - you can google for more examples. This is a example of having your html on the Public MBL share in WWW/My-WWW. I use the Public share to make it easier to edit the html from my Windows machine. Note you need to have more for security if you expose this website outside your firewall.
Create WWW/My-WWW on the Public share (It IS case-sensitive) and put your html there with an index.html. This will be set as the DocumentRoot below.
2. In Putty: ssh root@YourMBL
Type: nano /etc/apache2/sites-available/My-WWW (This will create a file named My-WWW)
Can I setup things to host a ‘public’ website as well please? I want to do the same thing you have described - with the addition of making this web-site (only), visible / accessible from the internet.
@happyBoy, I assume you are aware that you need a Public IP to host your website, and you can forward requests from port 80 to your MBL via your router.
Hi, RickGTX thanks for your answer, it works correctly
I shared one of my public folders “/shares/Public/Shared Videos/Movies”, but when I browse my new server url: http://myMBL:8080/ I can’t view the movie folder list that I have in this directory, and I get an “Not Found - The requested URL / was not found on this server.”
I created an index.html to verify that the web server was working properly, and it appears without problems.