@Zacharee1 I tend to have individual site server blocks done by domain - gitlab.hellnet.io for instance is a file in /etc/nginx/sites_available/, with a symlink to it in /etc/nginx/sites_enabled which contains a reverse proxy clause to a gitlab instance running on the same box in its own nginx that shipped with gitlab-ce's installer
it's how I set up my 'web gateway' boxes which route traffic to the different hypervisors from the outside on a globally web-facing server on my network
@Zacharee1 also, PHP handling pitfall, don't let PHP handle the static files, just let NGINX do that, and you reduce PHP heaviness (It should only process PHP, not static files)
@Zacharee1 i can confirm that last config block I just posted will correctly redirect http://www.x-p-w.tk/* to http://x-p-w.tk/* (where * is any request and related arguments and such)
so then the only real issue you have to worry about then is what's on the x-p-w.tk site
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/server.conf:6 nginx: configuration file /etc/nginx/nginx.conf test failed
that... doesn't mean anything really. IP phones are a lot more complex, and very often do not accept connections from external networks to their web interfaces for security reasons
Not to harp on this, but if I knew the IP address at your location (oh wait I do because of the dynamic DNS), and the IP phone's interface is web facing
I'd bet you a dollar I could breach it in ten minutes
without nothing more than nmap, wireshark, and armitage+metasploit from my kali box
not that I would, mind you, but to give you an idea of the risks of exposing IP phone interfaces to the world
there's a reason SIPVicious is one of the most commonly-scanned services - because people do what your dad tries to do and put IP phone SIP servers onto the Internet web facing without doing better security, and they get stolen things there.