I'm using a Pi as a web server on my home network for WordPress site development. The current project is to add a subdomain to the main website so that a shop runs as a separate site - running a different theme because the parent site's theme doesn't have the right look and feel for a shop.
I have created the subdomain on the Pi and can access it using the browser on the PI - http://shop.webpi
I have no problem accessing the server from a Windows 10 computer on the local network using the Pi's hostname - http:/webpi or just webpi - but I cannot access the subdomain - http://shop/webpi - Firefox gives me "We can’t connect to the server at www.shop.webpi."
I'm not using a fixed IP address for the Pi. Is there a way of making the subdomain discoverable without having to use a fixed IP address and then editing hosts files on any machine I want to access the development site from?
Thank you for your help.