At the moment I have a directory containing various web-facing products, such as a Drupal site, a wiki, etc, something like this.
/srv/www
/srv/www/blog
/srv/www/wiki
/srv/www/sometestphpapp
At the moment, I've got one apache2 virtualhost config in /sites-available
that simply sets ServerName to the domain mydomain.com
sets the docroot to /srv/www
and sets basic auth. If I want to bring up or demonstrate something I'm working on, I direct people to the site, and they just navigate the apache-provided directory structure.
What I'd like to do, I think, is have a setup where I can control which of the subdirectories in /srv/www
are available to people, by mapping them to a URL path with its own basic auth. So for instance, /srv/www/blog
would be available at mydomain.com/blog
Do I need a seperate config for each folder I want to serve up, and more importantly, what does the directive look like to map mydomain.com/blog
to the /srv/www/blog
, and say, mydomain.com/wiki
to /srv/www/wiki
?