The original post: /r/debian by /u/sliberty57 on 2025-01-30 00:56:57.
I have Apache2 running on Debian on my Raspberry Pi. The website on port 80 works fine. I have a second website in a separate folder, and would like it to be accessible too. I assume that I need to set it up for a different port (say, 81). Its not clear to me exactly what I have to do here. I think I understand that I need a .conf file in the /etc/apache2/sites-available folder, and that in that conf file, I would indicate that it should be on port 81. But I am not sure how I need to structure that .conf file. Can I simply copy the 000-default.conf file, and change the port and web root directory? And can I then just copy that .conf file to /etc/apache2/sites-enabled, and restart Apache2? Is there more that I have to do to get this working?