I'm trying to make an alias on my server which directs all traffic that comes into example.com/z/
to a different directory than the rest of example.com
, where example.com
has a Laravel 4.2 install and example.com/z/
has a Lumen install which runs a service.
This is my original vhost:
<VirtualHost *:80>
ServerName example.com
DocumentRoot /data/user/public_html/public
<Directory /data/user/public_html/public>
Options +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>
And this is the vhost with the /z/
alias added in:
<VirtualHost *:80>
ServerName example.com
DocumentRoot /data/user/public_html/public
Alias /z/ /data/user/service/public
<Directory /data/user/service/public>
Options +FollowSymlinks
AllowOverride All
</Directory>
<Directory /data/user/public_html/public>
Options +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>
When a navigate to exmaple.com/z/
I get a 403 page and in the logs this error:
Directory index forbidden by Options directive: /data/user/service/public
And if I go to anything else under /z/
(example: /z/abcd
) I get a 404 page, but it looks like the Laravel 404 page instead of the Lumen 404 page.
Any ideas on how I can get this working?