I want to add a new subdomain to an existing site. I'm using Apache on Debian, with a number of working virtual hosts on the site already - not set up by me.
/etc/apache2/apache2.conf file contains the following lines (incidentally
httpd.conf exists but is empty, I don't know if that's significant):
# Include the virtual host configurations: Include /etc/apache2/sites-enabled/
/etc/apache2/sites-enabled/ directory, there is a whole bunch of files, called things like
Each of these files has a VirtualHost entry - e.g.
forum.mysite.org looks like this:
<VirtualHost *:80> ServerName forum.mysite.org WSGIScriptAlias /var/docs/forum.wsgi ... etc
My question is this. To add a new subdomain, do I simply need to create a new file in
/etc/apache2/sites-enabled/ and set ServerName and WSGIScriptAlias appropriately? Or is there more to it than that?