By mshepherd on
Hi,
This is what I'm trying to achieve with Apache2 virtual hosts:
- Main Drupal site at http://url.com
- Second Drupal site at http://url.com/secondsite/
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
Suburl
I guess what I'm trying for is a Drupal site with a suburl of another Drupal site...