Reverse proxy with subdomain

Did you setup your sub domain as DDNS? Does it have correct IP address assigned?

Where did you change this setting? In which configuration file?

That’s exactly the point. You need to adjust this section to fit to your system as written on the comments within the code section.