How do I map some subdirectories to run alongside a Drupal site?
- by paradroid
I have a Drupal site running on Apache using the following vhosts file:
<VirtualHost xx.xx.xx.xx:80>
ServerName bananas.net
ServerAlias www.bananas.net
DocumentRoot /var/www/drupal/
RewriteEngine On
RewriteCond %{HTTP_HOST} !=bananas.net [NC]
RewriteRule ^(.*)$ http://bananas.net$1 [L,R=301]
<Directory /var/www/bananas.net/>
Options -Indexes FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>
I set it up some time ago, so I am not sure what the <Directory /var/www/bananas.net/> directive was meant for. That directory is currently empty.
With the vhosts file the way it is, does the Directory directive have any effect at all?
I want to add some content which is separate from the Drupal site. How do I add sub-directories within /var/www/bananas.net/ which can be accessed alongside the Drupal site running at the root? As they have nothing to do with the Drupal site, I want to keep the files separate, but still using the same domain.