How do I map some subdirectories to run alongside a Drupal site?

Posted by paradroid on Pro Webmasters See other posts from Pro Webmasters or by paradroid
Published on 2011-09-11T03:29:42Z Indexed on 2013/11/02 10:15 UTC
Read the original article Hit count: 170

Filed under:
|

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.

  1. With the vhosts file the way it is, does the Directory directive have any effect at all?
  2. 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.

© Pro Webmasters or respective owner

Related posts about apache

Related posts about virtualhost