You can easily do it by a simple package named
apache. It's a powerful web server, however, you can accomplish what you said by it.
1. Install Apache:
sudo apt-get install apache2
2. Start the service:
sudo service apache2 start
3. Open the browser of the Raspberry Pi and open
http://localhost/ address by a browser. You'll something like the picture below:
Next, do it by another host/PC on the network. Note that in this case, you need to open
4. Put your
.html files in the
/var/www/html/ directory. As an example, I had a folder named "khar" and in this folder, I had two files,
4.1. Move/copy folder to the apache's directory:
cp -r khar /var/www/html/
4.2. Now, I can open
.html files by opening
http://raspberrypi/sag.html in the browser.
If you want this service start at startup, do it:
sudo systemctl enable apache2
It's not about linking/redirecting a web page, as @RogerJones said, it's related to OpenHAB!
Open the OpenHAB config file and change
OPENHAB_HTTP_ADDRESS=192.168.178.20 if the PC's IP address is
If you don't want to make a limitation, comment it