SellYourSaas
SellYourSaas copied to clipboard
Apache VirtualHost config for myaccount... not working
Describe the bug A 403 Forbidden page appears when trying to access to the myaccount.mysaasdomain.com
Desktop (please complete the following information):
- OS: Ubuntu 22.04 / Apache 2.4.52 / PHP 8.1.2
Found a workaround consisting in putting the following line in /etc/apache2/sites-available/myaccount.mysaasdomain.com.conf DocumentRoot /home/admin/wwwroot/dolibarr_sellyoursaas/myaccount
Looks like the webserver cannot traverse the symlink to myaccount.
Could you please update the documentation ?
In your virtual host for myaccount.mysaasdomain.com, did you got
<Directory /home/admin/wwwroot/dolibarr_sellyoursaas/myaccount>
AllowOverride FileInfo Options
Options -Indexes -MultiViews +FollowSymLinks -ExecCGI
Require all granted
</Directory>
So with the +FollowSymLinks, apache is allowed to traverse symlinks.