Are you running Apache or NGINX on the Pi for anything? Jut trying to figure out why you are trying to redirect away from port 80.
Personally, I would use one of the above web server packages and write the faux web site in PHP. If you're using port 80 for something else, look at the web server's options for setting up named virtual hosts.
Before I gave up on trying to scrape my bridge traffic, I wrote this file (post.php) to spoof the returned info from MBW:
I don't remember if it actually worked or not, but feel free to build on it.![Smile :)]()
Some of the open-source home router firmware packages have the ability to serve fake DNS records via DNSmasq, so you can actually plug your bridge directly into the router and point a fake DNS name at your web server.....
Personally, I would use one of the above web server packages and write the faux web site in PHP. If you're using port 80 for something else, look at the web server's options for setting up named virtual hosts.
Before I gave up on trying to scrape my bridge traffic, I wrote this file (post.php) to spoof the returned info from MBW:
Code: [Select]
<?php
echo "{ \"success\": 1, \"checkversion\": \"126\" }";
?>
I don't remember if it actually worked or not, but feel free to build on it.

Some of the open-source home router firmware packages have the ability to serve fake DNS records via DNSmasq, so you can actually plug your bridge directly into the router and point a fake DNS name at your web server.....