Hi,

This is what I'm trying to achieve with Apache2 virtual hosts:

So I think I have to the Apache Location directive to match the second string site. Something like:

<Location /secondsite/>

...or some regex version of it to capture /secondsite/ as well as /secondsite

My vhost file already looks like this:

<VirtualHost *:80>
  ServerAdmin admin@domain
  ServerName vacdirectory.illuminateweb.org.uk
  CustomLog /var/log/apache2/access.log combined
  DocumentRoot /home/server/websites/drupal/illuminate/live/drupal-6.14
  <Directory /home/server/websites/drupal/illuminate/live/drupal-6.14/>
    Options +FollowSymLinks
    AllowOverride All
    order allow,deny
    allow from all
  </Directory>
</VirtualHost>

Questions:

Does the subsite have its own VirtualHost within this same file?
or
Does the Location directive live in the same VistualHost directive?

<VirtualHost>
  ...
  <Directory>
    main site
  </Directory>
  <Location /secondsite/>
    subsite
  </Location>
</VirtualHost>

Any pointers or help would be appreciated!
Thanks

Comments

mshepherd’s picture

I guess what I'm trying for is a Drupal site with a suburl of another Drupal site...