I have recently aquired a NAT VPS, which I will talk more about in a future post, but for now, I need to change the port that apache listens on from the default port 80.
Here's how I did it.
And change the "Listen" value from 80 to, in my case, 50781
Save the file, and we'll move on to the next part.
And then change the first line, which will be
After that's done, we need to restart Apache
systemctl restart apache2
And you should be able to access the website on your new port!