I have a site setup that has some custom modules that utilize directories outside the main drupal directory. On most of the server infrastructures I work on, I used a virtual host along the lines of
Alias /customimages /path/to/custommodulefiles
<Directory "/path/to/custommodulefiles">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
I'm trying to find a way to accomplish this in VDD. Adding another VHost to the entries seems to cause a parsing error as does adding another alias line.
I'm not sure if this feature is unsupported or if I'm doing something wrong.
Any advice is appreciated, thanks!
Comments
Comment #1
ericrdb commentedHi @Melissamcewen
I'm not aware of a way that we have this automated within the vdd provisioning process.
I suspect best path forward will be editing the apache vhost config file manually as needed post-provision. You can find the right file here:
/etc/apache2/sites-enabled/localhost.conf
Or, add your own custom vhost config file in that folder so if you 'vagrant provision' a second time your custom config persists instead of being written over by the provisioning process.
Best