Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Due to my job on my localhost I have a lot (think 50+) sites running, these are for about 8 different clients,

I want to organise my sites into subfolders.

I tried putting my sites in subfolders e.g.


But using any combination of:

a2ensite client1/first-site
a2ensite first-site

says the site does not exist.

If I use:

a2ensite client1

then I can enable/disable the entire directory, but that's not really what I want..

Is this feasible? or will I have to manually create the symlinks? if so is there a function I can use as a replacement for a2ensite that will handle subfolders?

share|improve this question
up vote 5 down vote accepted

No, you can't. Consider an organization like this:


So you can enable them without creating symlinks manually.

An useful link about multiple Virtual Host

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.