Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I configure a site with a subdirectory, say example.com/foo as an alias, foo.example.com site URI, i get a 404 when i visit example.com/foo/node.
The requested URL /var/aegir/hostmaster-6.x-2.0-rc2/index.php was not found on this server.
This was first reported in #2020079: Multi-server subdirectory support.
Comments
Comment #1
anarcat CreditAttribution: anarcat commentedI tried the following...
status quo
The current approach is to have the following vhost:
And the following foo.conf file in subdirs.d:
It turns out that the rewrite rules simply don't kick in and clean URLs effectively are broken.
add a document root
I then tried this:
But then everything would redirect to example.com/install.php.
symlink /foo
I tried the above docroot solution but with a symlink foo -> .. in the platform directory. No luck either.
Comment #2
anarcat CreditAttribution: anarcat commentedComment #3
anarcat CreditAttribution: anarcat commentedalright, after re-reading the original implementation, it seems that i was missing a magic rewrite rule. i originally thought a RewriteBase could work, but they only work in a .htaccess or a block.
The magic bit missing was:
committed and pushed. next step is to figure out multiserver support!