there is a problem with Kirby 3 when using Apache’s
VirtualDocumentRoot functionality (having multiple virtual hosts with only one configuration block in httpd.conf):
When trying to access the kirby pages, the path is not found. As soon as i change apache’s configuration to a regular virtualhost configuration everything works as expected).
With the very first version of Kirby 3 i tracked that problem down and changed one line of code in the area somewhere around the request uri is detected. Than kirby works with both regular virtual hosts and VirtualDocumentRoot configurations as well. Its just one simnple thing where the current request uri is not build properly… but I can’t find it again and now i need to upgrade to the current version…
Therefore i need the help of the developing team to fix that kirby bug. It is very easy to reproduce:
mod_vhost_alias and set up a configuration like this:
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerAlias *.local # include the server name in the filenames used to satisfy requests VirtualDocumentRoot /home/vhosts/%0/ </VirtualHost>
This serves virtual hosts from directories like:
and so on.
The problem is that kirby can not detected the request uri and will not serve any request. Instead it shows up an error message that something went wrong.
Any help is welcome.